Skip to content

Commit

Permalink
Cleanup UI a bit more and set buddy associations.
Browse files Browse the repository at this point in the history
We rename the label to 'Maximum Size' and give the spinbox
a suffix of 'MPx'. The tooltip further clarifies that this
is in units of mega pixels.
  • Loading branch information
milianw committed Oct 4, 2013
1 parent 5f20f94 commit 661cbbd
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions plugins/statemachineviewer/statemachineviewer.ui
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<property name="text">
<string>Maximum depth of state hierarchy shown:</string>
</property>
<property name="buddy">
<cstring>depthSpinBox</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
Expand Down Expand Up @@ -69,18 +72,30 @@
</item>
<item>
<widget class="QLabel" name="maxMegaPixelsLabel">
<property name="toolTip">
<string>&lt;qt&gt;Limits the maximum size of the exported image file. Zooming could otherwise make the image extremely large. The number given is in units of mega pixel.&lt;/qt&gt;</string>
</property>
<property name="text">
<string>Maximum Mega Pixels</string>
<string>Maximum Size:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>maxMegaPixelsSpinBox</cstring>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="maxMegaPixelsSpinBox">
<property name="toolTip">
<string>Limit the size of the image file. Zooming could make the image very large.</string>
<string>&lt;qt&gt;Limits the maximum size of the exported image file. Zooming could otherwise make the image extremely large. The number given is in units of mega pixel.&lt;/qt&gt;</string>
</property>
<property name="text" stdset="0">
<string>0</string>
<string>0 MPx</string>
</property>
<property name="suffix">
<string comment="mega pixel unit"> MPx</string>
</property>
</widget>
</item>
Expand All @@ -95,6 +110,9 @@
<property name="text">
<string>Start/Stop State Machine:</string>
</property>
<property name="buddy">
<cstring>startStopButton</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
Expand Down

0 comments on commit 661cbbd

Please sign in to comment.