Project

General

Profile

Actions

Bug #1530

open

Qt client, Shortcuts options dialog, Reset button causes dialog to shrink

Added by Dean Brown over 1 year ago. Updated 20 days ago.

Status:
In Review
Priority:
Normal
Category:
Qt-client
Target version:
Start date:
06/22/2025
Due date:
% Done:

0%

Estimated time:

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

1530.patch (3.83 KB) 1530.patch Dean Brown, 11/09/2026 02:18 AM
Actions #1

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().

Actions #2

Updated by Dean Brown 27 days ago

  • File deleted (1530.patch)
Actions #3

Updated by Dean Brown 27 days ago

  • File 1530.patch added

New patch with better formatted commit msg.

Actions #4

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.

Actions #5

Updated by Dean Brown 20 days ago

  • File deleted (1530.patch)
Actions #6

Updated by Dean Brown 20 days ago

In refresh(), also moved declaration of QWidget *widget into inner loop.

Actions #7

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
Actions

Also available in: Atom PDF