X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fenum.hpp;h=b3ce26cc488ad73d99f845c3f5ba57b77697f9d7;hp=7216508ca75fcf1f3590fa8febea78b681eb498c;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=00f6bae935837b38b0d03a5928ba8175d460413f diff --git a/pv/prop/enum.hpp b/pv/prop/enum.hpp index 7216508..b3ce26c 100644 --- a/pv/prop/enum.hpp +++ b/pv/prop/enum.hpp @@ -27,6 +27,9 @@ #include +using std::pair; +using std::vector; + Q_DECLARE_METATYPE(Glib::VariantBase); class QComboBox; @@ -39,7 +42,7 @@ class Enum : public Property Q_OBJECT; public: - Enum(QString name, std::vector > values, + Enum(QString name, vector > values, Getter getter, Setter setter); virtual ~Enum() = default; @@ -52,7 +55,7 @@ private Q_SLOTS: void on_current_item_changed(int); private: - const std::vector< std::pair > values_; + const vector< pair > values_; QComboBox *selector_; };