X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fprop%2Fproperty.hpp;h=322c608490c775803eeebe00b189a1140c3ba3c1;hb=efadabab3de1a4c5b9cd09316de5d9ae66251519;hp=6a4dd9ab2723156171cd04a23283b5f3ffd3434f;hpb=efdec55aec1a137460fa362a381ed1904182bfed;p=pulseview.git diff --git a/pv/prop/property.hpp b/pv/prop/property.hpp index 6a4dd9ab..322c6084 100644 --- a/pv/prop/property.hpp +++ b/pv/prop/property.hpp @@ -27,9 +27,12 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS G_GNUC_END_IGNORE_DEPRECATIONS #include + #include #include +using std::function; + class QWidget; namespace pv { @@ -40,14 +43,15 @@ class Property : public QObject Q_OBJECT; public: - typedef std::function Getter; - typedef std::function Setter; + typedef function Getter; + typedef function Setter; protected: - Property(QString name, Getter getter, Setter setter); + Property(QString name, QString desc, Getter getter, Setter setter); public: const QString& name() const; + const QString& desc() const; virtual QWidget* get_widget(QWidget *parent, bool auto_commit = false) = 0; @@ -61,9 +65,10 @@ protected: private: QString name_; + QString desc_; }; -} // prop -} // pv +} // namespace prop +} // namespace pv #endif // PULSEVIEW_PV_PROP_PROPERTY_HPP