Minor UI cleanup (#313)

* Adjust tab-order of widgets to follow a logical spatial order.  (#309)
* Remove default attribute from Print button in PrintView.  (#308)
This commit is contained in:
Jaye Evins
2026-02-18 11:38:38 -05:00
committed by GitHub
parent 6ad97b76dc
commit 226841fe38
13 changed files with 162 additions and 18 deletions
+9 -1
View File
@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>469</width> <width>469</width>
<height>297</height> <height>310</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@@ -132,6 +132,14 @@
</slots> </slots>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops>
<tabstop>typeCombo</tabstop>
<tabstop>nameEdit</tabstop>
<tabstop>valueEdit</tabstop>
<tabstop>colorValueButton</tabstop>
<tabstop>incrementCombo</tabstop>
<tabstop>stepSizeEdit</tabstop>
</tabstops>
<resources/> <resources/>
<connections> <connections>
<connection> <connection>
+64 -11
View File
@@ -56,7 +56,6 @@
<font> <font>
<family>Sans Serif</family> <family>Sans Serif</family>
<pointsize>10</pointsize> <pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold> <bold>true</bold>
</font> </font>
</property> </property>
@@ -70,7 +69,7 @@
<item row="1" column="0"> <item row="1" column="0">
<widget class="QTabWidget" name="notebook"> <widget class="QTabWidget" name="notebook">
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>5</number>
</property> </property>
<widget class="QWidget" name="textPage"> <widget class="QWidget" name="textPage">
<attribute name="title"> <attribute name="title">
@@ -106,7 +105,8 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-align-text-left"/> <iconset theme="glabels-align-text-left">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -131,7 +131,8 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-align-text-center"/> <iconset theme="glabels-align-text-center">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -153,7 +154,8 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-align-text-right"/> <iconset theme="glabels-align-text-right">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -182,7 +184,8 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-valign-text-top"/> <iconset theme="glabels-valign-text-top">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -207,7 +210,8 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-valign-text-middle"/> <iconset theme="glabels-valign-text-middle">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -229,7 +233,8 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-valign-text-bottom"/> <iconset theme="glabels-valign-text-bottom">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -382,7 +387,8 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-format-text-bold"/> <iconset theme="glabels-format-text-bold">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -404,7 +410,8 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-format-text-italic"/> <iconset theme="glabels-format-text-italic">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -423,7 +430,8 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-format-text-underline"/> <iconset theme="glabels-format-text-underline">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -1537,6 +1545,51 @@
</slots> </slots>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops>
<tabstop>notebook</tabstop>
<tabstop>textFontFamilyCombo</tabstop>
<tabstop>textFontSizeSpin</tabstop>
<tabstop>textFontBoldToggle</tabstop>
<tabstop>textFontItalicToggle</tabstop>
<tabstop>textFontUnderlineToggle</tabstop>
<tabstop>textColorButton</tabstop>
<tabstop>textHAlignLeftToggle</tabstop>
<tabstop>textHAlignCenterToggle</tabstop>
<tabstop>textHAlignRightToggle</tabstop>
<tabstop>textVAlignTopToggle</tabstop>
<tabstop>textVAlignMiddleToggle</tabstop>
<tabstop>textVAlignBottomToggle</tabstop>
<tabstop>textWrapModeCombo</tabstop>
<tabstop>textLineSpacingSpin</tabstop>
<tabstop>textAutoShrinkCheck</tabstop>
<tabstop>textEdit</tabstop>
<tabstop>textInsertFieldButton</tabstop>
<tabstop>barcodeStyleButton</tabstop>
<tabstop>barcodeShowTextCheck</tabstop>
<tabstop>barcodeChecksumCheck</tabstop>
<tabstop>barcodeColorButton</tabstop>
<tabstop>barcodeDataEdit</tabstop>
<tabstop>barcodeInsertFieldButton</tabstop>
<tabstop>imageFilenameLineEdit</tabstop>
<tabstop>imageBrowseButton</tabstop>
<tabstop>imageFieldButton</tabstop>
<tabstop>lineWidthSpin</tabstop>
<tabstop>lineColorButton</tabstop>
<tabstop>fillColorButton</tabstop>
<tabstop>posXSpin</tabstop>
<tabstop>posYSpin</tabstop>
<tabstop>sizeWSpin</tabstop>
<tabstop>sizeHSpin</tabstop>
<tabstop>sizeAspectCheck</tabstop>
<tabstop>sizeResetImageButton</tabstop>
<tabstop>sizeLineLengthSpin</tabstop>
<tabstop>sizeLineAngleSpin</tabstop>
<tabstop>shadowEnableCheck</tabstop>
<tabstop>shadowXSpin</tabstop>
<tabstop>shadowYSpin</tabstop>
<tabstop>shadowColorButton</tabstop>
<tabstop>shadowOpacitySpin</tabstop>
</tabstops>
<resources> <resources>
<include location="../icons.qrc"/> <include location="../icons.qrc"/>
</resources> </resources>
+12 -1
View File
@@ -17,7 +17,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="tab"> <widget class="QWidget" name="tab">
<attribute name="title"> <attribute name="title">
@@ -195,6 +195,17 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>unitsInchesRadio</tabstop>
<tabstop>unitsMillimetersRadio</tabstop>
<tabstop>unitsCentimetersRadio</tabstop>
<tabstop>unitsPointsRadio</tabstop>
<tabstop>unitsPicasRadio</tabstop>
<tabstop>gridOriginTlRadio</tabstop>
<tabstop>gridOriginCenterRadio</tabstop>
<tabstop>gridSpacingSpin</tabstop>
</tabstops>
<resources/> <resources/>
<connections> <connections>
<connection> <connection>
+1 -1
View File
@@ -490,7 +490,7 @@
</size> </size>
</property> </property>
<property name="default"> <property name="default">
<bool>true</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
+7
View File
@@ -434,6 +434,13 @@
<header>SimplePreview.hpp</header> <header>SimplePreview.hpp</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops>
<tabstop>changeProductButton</tabstop>
<tabstop>lengthSpin</tabstop>
<tabstop>orientationCombo</tabstop>
<tabstop>similarBrowser</tabstop>
<tabstop>preview</tabstop>
</tabstops>
<resources> <resources>
<include location="../icons.qrc"/> <include location="../icons.qrc"/>
</resources> </resources>
+5
View File
@@ -218,6 +218,11 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>websiteButton</tabstop>
<tabstop>infoText</tabstop>
<tabstop>copyButton</tabstop>
</tabstops>
<resources> <resources>
<include location="../icons.qrc"/> <include location="../icons.qrc"/>
</resources> </resources>
+8
View File
@@ -183,6 +183,14 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>r1Spin</tabstop>
<tabstop>r2Spin</tabstop>
<tabstop>xClipSpin</tabstop>
<tabstop>yClipSpin</tabstop>
<tabstop>wasteSpin</tabstop>
<tabstop>marginSpin</tabstop>
</tabstops>
<resources> <resources>
<include location="../images.qrc"/> <include location="../images.qrc"/>
</resources> </resources>
@@ -149,6 +149,12 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>wSpin</tabstop>
<tabstop>hSpin</tabstop>
<tabstop>wasteSpin</tabstop>
<tabstop>marginSpin</tabstop>
</tabstops>
<resources> <resources>
<include location="../images.qrc"/> <include location="../images.qrc"/>
</resources> </resources>
+7 -2
View File
@@ -132,7 +132,11 @@
<item row="0" column="1" rowspan="2"> <item row="0" column="1" rowspan="2">
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="glabels::SimplePreview" name="preview"/> <widget class="glabels::SimplePreview" name="preview">
<property name="interactive">
<bool>false</bool>
</property>
</widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
@@ -161,7 +165,8 @@
<string>Print test sheet</string> <string>Print test sheet</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-print"/> <iconset theme="glabels-print">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -129,6 +129,12 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>pageSizeCombo</tabstop>
<tabstop>wSpin</tabstop>
<tabstop>hSpin</tabstop>
<tabstop>rollWSpin</tabstop>
</tabstops>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>
+9
View File
@@ -187,6 +187,15 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>wSpin</tabstop>
<tabstop>hSpin</tabstop>
<tabstop>rSpin</tabstop>
<tabstop>xWasteSpin</tabstop>
<tabstop>yWasteSpin</tabstop>
<tabstop>xMarginSpin</tabstop>
<tabstop>yMarginSpin</tabstop>
</tabstops>
<resources> <resources>
<include location="../images.qrc"/> <include location="../images.qrc"/>
</resources> </resources>
+5
View File
@@ -132,6 +132,11 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>rSpin</tabstop>
<tabstop>wasteSpin</tabstop>
<tabstop>marginSpin</tabstop>
</tabstops>
<resources> <resources>
<include location="../images.qrc"/> <include location="../images.qrc"/>
</resources> </resources>
+23 -2
View File
@@ -170,7 +170,11 @@
<item row="0" column="1" rowspan="2"> <item row="0" column="1" rowspan="2">
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="glabels::SimplePreview" name="preview"/> <widget class="glabels::SimplePreview" name="preview">
<property name="interactive">
<bool>false</bool>
</property>
</widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
@@ -199,7 +203,8 @@
<string>Print test sheet</string> <string>Print test sheet</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="glabels-print"/> <iconset theme="glabels-print">
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@@ -248,6 +253,22 @@
<header>SimplePreview.hpp</header> <header>SimplePreview.hpp</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops>
<tabstop>nxSpin1</tabstop>
<tabstop>nySpin1</tabstop>
<tabstop>x0Spin1</tabstop>
<tabstop>y0Spin1</tabstop>
<tabstop>dxSpin1</tabstop>
<tabstop>dySpin1</tabstop>
<tabstop>nxSpin2</tabstop>
<tabstop>nySpin2</tabstop>
<tabstop>x0Spin2</tabstop>
<tabstop>y0Spin2</tabstop>
<tabstop>dxSpin2</tabstop>
<tabstop>dySpin2</tabstop>
<tabstop>preview</tabstop>
<tabstop>printButton</tabstop>
</tabstops>
<resources> <resources>
<include location="../icons.qrc"/> <include location="../icons.qrc"/>
</resources> </resources>