mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-22 14:24:13 +02:00
537e3c3c10
Each Increment spin box had a fixed maximum width of 55 px. The Windows 11 style puts the up and down arrows side by side, which leaves almost nothing of 55 px for the number (#1566). The boxes now take the width their style asks for. Test: tst_autonumincrementwidth runs the editor under a style that widens spin boxes the way the Windows 11 style does and checks each Increment box is at least as wide as the style needs: 55 px against 81 px before this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
313 lines
8.7 KiB
XML
313 lines
8.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<ui version="4.0">
|
||
<class>AutoNumberingDockWidget</class>
|
||
<widget class="QDockWidget" name="AutoNumberingDockWidget">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>0</x>
|
||
<y>0</y>
|
||
<width>388</width>
|
||
<height>335</height>
|
||
</rect>
|
||
</property>
|
||
<property name="windowTitle">
|
||
<string>Auto numbering selection</string>
|
||
</property>
|
||
<widget class="QWidget" name="dockWidgetContents">
|
||
<layout class="QGridLayout" name="gridLayout">
|
||
<item row="0" column="3">
|
||
<widget class="QLabel" name="value_header_label">
|
||
<property name="text">
|
||
<string>Value</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="4">
|
||
<widget class="QLabel" name="increase_header_label">
|
||
<property name="text">
|
||
<string>Increment</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="5">
|
||
<widget class="QLabel" name="next_header_label">
|
||
<property name="text">
|
||
<string>Next</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="1">
|
||
<widget class="QComboBox" name="m_element_cb"/>
|
||
</item>
|
||
<item row="4" column="0">
|
||
<widget class="QLabel" name="label_3">
|
||
<property name="text">
|
||
<string>Sheet</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<widget class="QComboBox" name="m_conductor_cb"/>
|
||
</item>
|
||
<item row="2" column="2">
|
||
<widget class="QPushButton" name="m_conductor_reset_start_pb">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>24</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="toolTip">
|
||
<string>Reset to the default value</string>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset theme="view-refresh"/>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="3">
|
||
<widget class="QLineEdit" name="m_conductor_value_le">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>70</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="toolTip">
|
||
<string>Current meter reading. Enter a new value and press ‘Confirm’ to change it.</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="4">
|
||
<widget class="QSpinBox" name="m_conductor_increase_sb">
|
||
<property name="toolTip">
|
||
<string>Increment: the value added to the counter each time a new number is dialled</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
<property name="accelerated">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="minimum">
|
||
<number>0</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="5">
|
||
<widget class="QLineEdit" name="m_conductor_next_le">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>70</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="toolTip">
|
||
<string>The next value to be applied using this increment</string>
|
||
</property>
|
||
<property name="readOnly">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="0">
|
||
<widget class="QLabel" name="label">
|
||
<property name="text">
|
||
<string>Element</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QLabel" name="label_2">
|
||
<property name="text">
|
||
<string>Conductor</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="2">
|
||
<widget class="QPushButton" name="m_element_reset_start_pb">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>24</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="toolTip">
|
||
<string>Reset to the default value</string>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset theme="view-refresh"/>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="3">
|
||
<widget class="QLineEdit" name="m_element_value_le">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>70</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="toolTip">
|
||
<string>Current meter reading. Enter a new value and press ‘Confirm’ to change it.</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="4">
|
||
<widget class="QSpinBox" name="m_element_increase_sb">
|
||
<property name="toolTip">
|
||
<string>Increment: the value added to the counter each time a new number is dialled</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
<property name="accelerated">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="minimum">
|
||
<number>0</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="5">
|
||
<widget class="QLineEdit" name="m_element_next_le">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>70</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="toolTip">
|
||
<string>The next value to be applied using this increment</string>
|
||
</property>
|
||
<property name="readOnly">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="1">
|
||
<widget class="QComboBox" name="m_folio_cb"/>
|
||
</item>
|
||
<item row="4" column="2">
|
||
<widget class="QPushButton" name="m_folio_reset_start_pb">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>24</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="toolTip">
|
||
<string>Reset to the default value</string>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset theme="view-refresh"/>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="3">
|
||
<widget class="QLineEdit" name="m_folio_value_le">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>70</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="toolTip">
|
||
<string>Current meter reading. Enter a new value and press ‘Confirm’ to change it.</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="4">
|
||
<widget class="QSpinBox" name="m_folio_increase_sb">
|
||
<property name="toolTip">
|
||
<string>Increment: the value added to the counter each time a new number is dialled</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
<property name="accelerated">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="minimum">
|
||
<number>0</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="5">
|
||
<widget class="QLineEdit" name="m_folio_next_le">
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>70</width>
|
||
<height>16777215</height>
|
||
</size>
|
||
</property>
|
||
<property name="toolTip">
|
||
<string>The next value to be applied using this increment</string>
|
||
</property>
|
||
<property name="readOnly">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="0">
|
||
<spacer name="verticalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Vertical</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>20</width>
|
||
<height>40</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item row="5" column="1">
|
||
<widget class="QPushButton" name="m_configure_pb">
|
||
<property name="toolTip">
|
||
<string>Configure auto numbering rules</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>Configure</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset theme="configure"/>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</widget>
|
||
<resources>
|
||
<include location="../../../qelectrotech.qrc"/>
|
||
</resources>
|
||
<connections/>
|
||
</ui>
|