mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-09 13:34:14 +02:00
Make 0 the automatic width in the free text width box
The box showed Auto for -1 while IndependentTextItem::setTextWidth() treats every value up to 0 as automatic. Typing 0, or the first click on the up arrow from Auto, then put a width change in the undo history that changed nothing, left the box on 0, and in live edit every later change of X, Y, angle, text or size was replaced by that empty command. Auto is 0 in the box now, like in the setter: no number is the automatic width, and the first step up is 1 px. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -148,13 +148,13 @@
|
||||
<string>px</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>-1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>10000</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>-1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user