mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-08 21:14:14 +02:00
2c9900eca8
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>
212 lines
5.7 KiB
XML
212 lines
5.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>IndiTextPropertiesWidget</class>
|
|
<widget class="QWidget" name="IndiTextPropertiesWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>340</width>
|
|
<height>296</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>X :</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0" colspan="4">
|
|
<widget class="QPushButton" name="m_advanced_editor_pb">
|
|
<property name="text">
|
|
<string>Éditeur avancé</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="2">
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="text">
|
|
<string>Taille :</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>Angle :</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QDoubleSpinBox" name="m_x_sb">
|
|
<property name="suffix">
|
|
<string>px</string>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>10000.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" 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="3" column="3">
|
|
<widget class="QSpinBox" name="m_size_sb">
|
|
<property name="minimum">
|
|
<number>4</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>50</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="3">
|
|
<widget class="QDoubleSpinBox" name="m_y_sb">
|
|
<property name="suffix">
|
|
<string>px</string>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>10000.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QDoubleSpinBox" name="m_angle_sb">
|
|
<property name="wrapping">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="suffix">
|
|
<string>°</string>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>359.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="2">
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>Y :</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="text">
|
|
<string>Largeur :</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QSpinBox" name="m_width_sb">
|
|
<property name="toolTip">
|
|
<string>Largeur du texte, le texte passe à la ligne. Auto : pas de retour à la ligne automatique</string>
|
|
</property>
|
|
<property name="specialValueText">
|
|
<string>Auto</string>
|
|
</property>
|
|
<property name="suffix">
|
|
<string>px</string>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>10000</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>0</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0" colspan="4">
|
|
<widget class="QLabel" name="m_label">
|
|
<property name="text">
|
|
<string>Le contenu, la taille et la police du texte ne peuvent être modifié car formaté en html.
|
|
Veuillez utiliser l'éditeur avancé pour cela.</string>
|
|
</property>
|
|
<property name="scaledContents">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0" colspan="4">
|
|
<widget class="QPushButton" name="m_break_html_pb">
|
|
<property name="text">
|
|
<string>Cliquez ici pour annuler le formatage html</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0" colspan="3">
|
|
<widget class="QLineEdit" name="m_line_edit">
|
|
<property name="placeholderText">
|
|
<string>Texte</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="3">
|
|
<widget class="QPushButton" name="m_font_pb">
|
|
<property name="text">
|
|
<string>Police</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<tabstops>
|
|
<tabstop>m_line_edit</tabstop>
|
|
<tabstop>m_font_pb</tabstop>
|
|
<tabstop>m_advanced_editor_pb</tabstop>
|
|
<tabstop>m_x_sb</tabstop>
|
|
<tabstop>m_y_sb</tabstop>
|
|
<tabstop>m_angle_sb</tabstop>
|
|
<tabstop>m_size_sb</tabstop>
|
|
<tabstop>m_width_sb</tabstop>
|
|
<tabstop>m_break_html_pb</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|