Skip to content

Commit

Permalink
Fix researcher wizard layout on macOS with native theme
Browse files Browse the repository at this point in the history
Some QFormLayout wizard pages look funky on macOS with the native
stylesheet because macOS typically displays the form layouts with
right-aligned labels and centers the content. The change replaces
the form layouts with grid layouts.
  • Loading branch information
cyrossignol committed Sep 2, 2020
1 parent 1d7c353 commit 1530213
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/qt/forms/researcherwizardpoolsummarypage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QWidget" name="infoFormLayoutWidget" native="true">
<widget class="QWidget" name="infoGridLayoutWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QFormLayout" name="infoFormLayout">
<layout class="QGridLayout" name="infoGridLayout" columnstretch="0,1">
<property name="leftMargin">
<number>0</number>
</property>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/forms/researcherwizardprojectspage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QFormLayout" name="infoFormLayout">
<layout class="QGridLayout" name="infoGridLayout" columnstretch="0,1">
<property name="leftMargin">
<number>0</number>
</property>
Expand Down
8 changes: 4 additions & 4 deletions src/qt/forms/researcherwizardsummarypage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
</widget>
</item>
<item>
<layout class="QFormLayout" name="summaryDetailsLayout">
<layout class="QGridLayout" name="summaryDetailsLayout" columnstretch="0,1">
<property name="leftMargin">
<number>6</number>
</property>
Expand Down Expand Up @@ -461,7 +461,7 @@
</widget>
</item>
<item>
<layout class="QFormLayout" name="beaconDetailsLayout">
<layout class="QGridLayout" name="beaconDetailsLayout" columnstretch="0,1">
<property name="leftMargin">
<number>6</number>
</property>
Expand Down Expand Up @@ -647,14 +647,14 @@
<item>
<layout class="QHBoxLayout" name="headerHorizontalLayout">
<item>
<widget class="QWidget" name="infoFormLayoutWidget" native="true">
<widget class="QWidget" name="infoGridLayoutWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QFormLayout" name="infoFormLayout">
<layout class="QGridLayout" name="infoGridLayout" columnstretch="0,1">
<property name="leftMargin">
<number>0</number>
</property>
Expand Down

0 comments on commit 1530213

Please sign in to comment.