X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fenum.h;h=45454fde41f68e81ae9c997d22fef69bdd58c8b1;hp=eff6647afd40974314b8a1218d9182ce98024909;hb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;hpb=e9213170687cf4afd14e20acdc690ff9381d94ae diff --git a/pv/prop/enum.h b/pv/prop/enum.h index eff6647a..45454fde 100644 --- a/pv/prop/enum.h +++ b/pv/prop/enum.h @@ -26,6 +26,10 @@ #include "property.h" +#include + +Q_DECLARE_METATYPE(Glib::VariantBase); + class QComboBox; namespace pv { @@ -36,7 +40,7 @@ class Enum : public Property Q_OBJECT; public: - Enum(QString name, std::vector > values, + Enum(QString name, std::vector > values, Getter getter, Setter setter); virtual ~Enum(); @@ -49,9 +53,9 @@ private Q_SLOTS: void on_current_item_changed(int); private: - const std::vector< std::pair > _values; + const std::vector< std::pair > values_; - QComboBox *_selector; + QComboBox *selector_; }; } // prop