class Int : public Property
{
+ Q_OBJECT;
+
public:
Int(QString name, QString suffix,
boost::optional< std::pair<int64_t, int64_t> > range,
Getter getter, Setter setter);
- QWidget* get_widget(QWidget *parent);
+ virtual ~Int();
+
+ QWidget* get_widget(QWidget *parent, bool auto_commit);
void commit();
+private Q_SLOTS:
+ void on_value_changed(int);
+
private:
- const QString _suffix;
- const boost::optional< std::pair<int64_t, int64_t> > _range;
+ const QString suffix_;
+ const boost::optional< std::pair<int64_t, int64_t> > range_;
- QSpinBox *_spin_box;
+ Glib::VariantBase value_;
+ QSpinBox *spin_box_;
};
} // prop