X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fenum.hpp;h=0193e238d562b224828bc98ac70b49c105b63dd0;hp=7216508ca75fcf1f3590fa8febea78b681eb498c;hb=9a267f8dec48c9a28472c1a3bb146c624819e98b;hpb=efdec55aec1a137460fa362a381ed1904182bfed diff --git a/pv/prop/enum.hpp b/pv/prop/enum.hpp index 7216508..0193e23 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,8 @@ class Enum : public Property Q_OBJECT; public: - Enum(QString name, std::vector > values, + Enum(QString name, QString desc, + vector > values, Getter getter, Setter setter); virtual ~Enum() = default; @@ -52,12 +56,12 @@ private Q_SLOTS: void on_current_item_changed(int); private: - const std::vector< std::pair > values_; + const vector< pair > values_; QComboBox *selector_; }; -} // prop -} // pv +} // namespace prop +} // namespace pv #endif // PULSEVIEW_PV_PROP_ENUM_HPP