Changeset 15 in flair-src for trunk/tools/FlairGCS/src/DoubleSpinBox.h
- Timestamp:
- Apr 8, 2016, 3:40:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/DoubleSpinBox.h
r10 r15 11 11 class QDoubleSpinBox; 12 12 13 class DoubleSpinBox: public FormLayout 14 { 15 Q_OBJECT 13 class DoubleSpinBox : public FormLayout { 14 Q_OBJECT 16 15 17 public: 18 //handle value as string, becouse double value are not exact 19 DoubleSpinBox(Layout* parent,int row, int col,QString name,QString suffix,QString value,float min,float max,float step,int decimals); 20 ~DoubleSpinBox(); 16 public: 17 // handle value as string, becouse double value are not exact 18 DoubleSpinBox(Layout *parent, int row, int col, QString name, QString suffix, 19 QString value, float min, float max, float step, int decimals); 20 ~DoubleSpinBox(); 21 21 22 23 QDoubleSpinBox*doublespinbox;24 25 26 27 28 29 30 31 22 private: 23 QDoubleSpinBox *doublespinbox; 24 QString doublespinbox_value; 25 void SetUptodate(void); 26 void Reset(void); 27 void LoadEvent(QDomElement dom); 28 void ui_to_var(void); 29 void ui_to_xml(void); 30 bool eventFilter(QObject *o, QEvent *e); 31 void adjust_decimals(QString value); 32 32 33 34 33 private slots: 34 void valuechanged(const QString &value); 35 35 }; 36 36
Note:
See TracChangeset
for help on using the changeset viewer.