X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fenum.hpp;h=617ff071b3784621aa3ecac67aad215f9f9c775a;hp=b3ce26cc488ad73d99f845c3f5ba57b77697f9d7;hb=dbed5609ae31cdfc3e9db10f3ab91b7607c08372;hpb=6f925ba9d6faf1077b73c5a5808259576081716a diff --git a/pv/prop/enum.hpp b/pv/prop/enum.hpp index b3ce26cc..617ff071 100644 --- a/pv/prop/enum.hpp +++ b/pv/prop/enum.hpp @@ -42,12 +42,14 @@ class Enum : public Property Q_OBJECT; public: - Enum(QString name, vector > values, + Enum(QString name, QString desc, + vector > values, Getter getter, Setter setter); virtual ~Enum() = default; QWidget* get_widget(QWidget *parent, bool auto_commit); + void update_widget(); void commit(); @@ -60,7 +62,7 @@ private: QComboBox *selector_; }; -} // prop -} // pv +} // namespace prop +} // namespace pv #endif // PULSEVIEW_PV_PROP_ENUM_HPP