G_GNUC_END_IGNORE_DEPRECATIONS
#include <functional>
+
#include <QString>
#include <QWidget>
+using std::function;
+
class QWidget;
namespace pv {
Q_OBJECT;
public:
- typedef std::function<Glib::VariantBase ()> Getter;
- typedef std::function<void (Glib::VariantBase)> Setter;
+ typedef function<Glib::VariantBase ()> Getter;
+ typedef function<void (Glib::VariantBase)> 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;
private:
QString name_;
+ QString desc_;
};
-} // prop
-} // pv
+} // namespace prop
+} // namespace pv
#endif // PULSEVIEW_PV_PROP_PROPERTY_HPP