[qet] [4605] Add ability conductor size less than 1, thank Timbul Widodo |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4605
Author: scorpio810
Date: 2016-08-05 14:15:59 +0200 (Fri, 05 Aug 2016)
Log Message:
-----------
Add ability conductor size less than 1, thank Timbul Widodo
Modified Paths:
--------------
trunk/sources/conductorproperties.cpp
trunk/sources/conductorproperties.h
trunk/sources/ui/conductorpropertieswidget.ui
Modified: trunk/sources/conductorproperties.cpp
===================================================================
--- trunk/sources/conductorproperties.cpp 2016-08-04 17:07:53 UTC (rev 4604)
+++ trunk/sources/conductorproperties.cpp 2016-08-05 12:15:59 UTC (rev 4605)
@@ -296,7 +296,7 @@
m_function = e.attribute("function");
m_tension_protocol = e.attribute("tension-protocol");
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_one_text_per_folio = e.attribute("onetextperfolio", QString::number(0)).toInt();
verti_rotate_text = e.attribute("vertirotatetext").toDouble();
Modified: trunk/sources/conductorproperties.h
===================================================================
--- trunk/sources/conductorproperties.h 2016-08-04 17:07:53 UTC (rev 4604)
+++ trunk/sources/conductorproperties.h 2016-08-05 12:15:59 UTC (rev 4605)
@@ -82,7 +82,7 @@
m_function,
m_tension_protocol;
int text_size;
- int cond_size;
+ double cond_size;
double verti_rotate_text;
double horiz_rotate_text;
bool m_show_text;
Modified: trunk/sources/ui/conductorpropertieswidget.ui
===================================================================
--- trunk/sources/ui/conductorpropertieswidget.ui 2016-08-04 17:07:53 UTC (rev 4604)
+++ trunk/sources/ui/conductorpropertieswidget.ui 2016-08-05 12:15:59 UTC (rev 4605)
@@ -17,7 +17,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
- <number>0</number>
+ <number>1</number>
</property>
<widget class="QWidget" name="type">
<attribute name="title">
@@ -378,13 +378,19 @@
</widget>
</item>
<item row="2" column="1">
- <widget class="QSpinBox" name="m_cond_size_sb">
+ <widget class="QDoubleSpinBox" name="m_cond_size_sb">
<property name="minimum">
- <number>1</number>
+ <double>0.400000000000000</double>
</property>
<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>
</widget>
</item>
</layout>