# HG changeset patch # User Wuzzy # Date 1507832220 -7200 # Node ID f2690a0ccf1985722dfc22f7544f5b73ec78b558 # Parent c71e330d5094d30d53574c4225bf7da756be9228 QTfrontend: Fix flickering and bad offset of control config popup If you opened the pop-up to change a key, there was a very short flicker at the left side and the pop-up had a bad offset which sometimes caused entries to be out of screen bounds. diff -r c71e330d5094 -r f2690a0ccf19 QTfrontend/ui/widget/keybinder.cpp --- a/QTfrontend/ui/widget/keybinder.cpp Thu Oct 12 19:04:30 2017 +0200 +++ b/QTfrontend/ui/widget/keybinder.cpp Thu Oct 12 20:17:00 2017 +0200 @@ -242,13 +242,12 @@ { QComboBox * box = bindCellComboBoxMappings->value(item); QTableWidget * table = item->tableWidget(); - QFrame * frame = box->findChild(); + box->move( + table->horizontalHeader()->sectionSize(0), + (table->verticalHeader()->defaultSectionSize() * (item->row() + 1)) - (box->height()) + 1 + ); box->showPopup(); - frame->move( - frame->x() + table->horizontalHeader()->sectionSize(0), - frame->y() + (table->verticalHeader()->defaultSectionSize() * item->row()) - ); } // When a new row in a bind table is *selected*, this clears selection in any other table