Skip to content

Commit

Permalink
TPath*Browse: set QPushButton minimum height to 32
Browse files Browse the repository at this point in the history
The Qt docs state:
    Note: On macOS when a push button's width becomes smaller than 50 or
    its height becomes smaller than 30, the button's corners are changed
    from round to square.
    https://doc.qt.io/qt-5/qpushbutton.html

On macOS 13.6 with Qt 5.15.10, this occurs whenever the height is less
than 32.

(This change will likely be applied to other uses of QPushButton, but
that's outside of the scope of this particular commit.)
  • Loading branch information
gperciva committed Nov 15, 2023
1 parent 062dbbb commit b303526
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/forms/TPathComboBrowse.ui
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@
</item>
<item>
<widget class="QPushButton" name="button">
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="text">
<string>Browse</string>
</property>
Expand Down
6 changes: 6 additions & 0 deletions lib/forms/TPathLineBrowse.ui
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@
</item>
<item>
<widget class="QPushButton" name="button">
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="text">
<string>Browse</string>
</property>
Expand Down

0 comments on commit b303526

Please sign in to comment.