X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fenum.h;fp=pv%2Fprop%2Fenum.h;h=6ff785a3ba430562fffbfacb47d97b5990a0ed04;hp=eff6647afd40974314b8a1218d9182ce98024909;hb=e8d009288de28cb194bc7964f96677c2baf900c9;hpb=87b79835014a386fb51b52bc993dbb693bd27197 diff --git a/pv/prop/enum.h b/pv/prop/enum.h index eff6647a..6ff785a3 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,7 +53,7 @@ private Q_SLOTS: void on_current_item_changed(int); private: - const std::vector< std::pair > _values; + const std::vector< std::pair > _values; QComboBox *_selector; };