X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fenum.h;h=6ff785a3ba430562fffbfacb47d97b5990a0ed04;hp=a7e6ed8d53f58bdcf8f5418ad7e695b1677e72e3;hb=e8d009288de28cb194bc7964f96677c2baf900c9;hpb=b1fe148e0dce6e369c9d4770ca935a6a9ec94b59 diff --git a/pv/prop/enum.h b/pv/prop/enum.h index a7e6ed8d..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(); @@ -45,11 +49,11 @@ public: void commit(); -private slots: +private Q_SLOTS: void on_current_item_changed(int); private: - const std::vector< std::pair > _values; + const std::vector< std::pair > _values; QComboBox *_selector; };