mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-23 23:44:13 +02:00
Show "Auto" in the width box of element editor text fields
The width box of a dynamic text field in the element editor showed -1 for the automatic width and stopped at 500 px. It now shows "Auto" and "px", and goes up to 10000 px, so a wider field is not cut to 500 just by being shown. Leaving the box without changing it no longer pushes a change either: the box holds whole pixels, while a width fitted to the text (or set elsewhere) can have decimals, and the comparison made the field's width round itself on every focus loss. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -101,11 +101,17 @@
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QSpinBox" name="m_width_sb">
|
||||
<property name="specialValueText">
|
||||
<string>Auto</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string>px</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>500</number>
|
||||
<number>10000</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user