mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
Add ability conductor size less than 1, thank Timbul Widodo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4605 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -296,7 +296,7 @@ void ConductorProperties::fromXml(QDomElement &e)
|
|||||||
m_function = e.attribute("function");
|
m_function = e.attribute("function");
|
||||||
m_tension_protocol = e.attribute("tension-protocol");
|
m_tension_protocol = e.attribute("tension-protocol");
|
||||||
text_size = e.attribute("numsize", QString::number(9)).toInt();
|
text_size = e.attribute("numsize", QString::number(9)).toInt();
|
||||||
cond_size = e.attribute("condsize", QString::number(1)).toInt();
|
cond_size = e.attribute("condsize", QString::number(1)).toDouble();
|
||||||
m_show_text = e.attribute("displaytext", QString::number(1)).toInt();
|
m_show_text = e.attribute("displaytext", QString::number(1)).toInt();
|
||||||
m_one_text_per_folio = e.attribute("onetextperfolio", QString::number(0)).toInt();
|
m_one_text_per_folio = e.attribute("onetextperfolio", QString::number(0)).toInt();
|
||||||
verti_rotate_text = e.attribute("vertirotatetext").toDouble();
|
verti_rotate_text = e.attribute("vertirotatetext").toDouble();
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class ConductorProperties
|
|||||||
m_function,
|
m_function,
|
||||||
m_tension_protocol;
|
m_tension_protocol;
|
||||||
int text_size;
|
int text_size;
|
||||||
int cond_size;
|
double cond_size;
|
||||||
double verti_rotate_text;
|
double verti_rotate_text;
|
||||||
double horiz_rotate_text;
|
double horiz_rotate_text;
|
||||||
bool m_show_text;
|
bool m_show_text;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<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="type">
|
<widget class="QWidget" name="type">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@@ -378,12 +378,18 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QSpinBox" name="m_cond_size_sb">
|
<widget class="QDoubleSpinBox" name="m_cond_size_sb">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<double>0.400000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>10</number>
|
<double>10.000000000000000</double>
|
||||||
|
</property>
|
||||||
|
<property name="singleStep">
|
||||||
|
<double>0.200000000000000</double>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<double>1.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user