Bug #1530
openQt client, Shortcuts options dialog, Reset button causes dialog to shrink
0%
Description
Seen with QT5 on Mac, 3.1 and 3.2
Game->Options->Shortcuts, from the Shortcuts options dialog press Reset button, the dialog shrinks vertically.
Files
Updated by Dean Brown over 1 year ago
- File 1530.patch added
Pushing Reset button causes call to fc_shortcuts_dialog::refresh(), which calls fc_shortcuts_dialog::init(). When init() is called the first time from the constructor, the call to sizeHint() gives a reasonable value, but when called from refresh() gives bogus (22,22). I rewrote refresh() to just clear and reset the scroll_layout and not call init(). Also refactored code with new method fc_shortcuts_dialog::populate_scroll_layout().
Updated by Marko Lindqvist 20 days ago
- Status changed from New to In Progress
- Assignee set to Dean Brown
In refresh(), box_layout and box_layout_item could be declared in an inner block than where they currently are.
Updated by Dean Brown 20 days ago
- File 1530.patch 1530.patch added
In refresh(), also moved declaration of QWidget *widget into inner loop.
Updated by Marko Lindqvist 20 days ago
- Status changed from In Progress to In Review
- Assignee changed from Dean Brown to Marko Lindqvist
- Target version set to 3.2.8