X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fprop%2Fstring.h;h=793a23cba0667447efd0b317aa521ca9922f3d0f;hb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;hp=bd95d9b91b3f28aa905ccf0731051969cb1a1049;hpb=7112a4581822c43241a55fbd61c98bee062d452b;p=pulseview.git diff --git a/pv/prop/string.h b/pv/prop/string.h index bd95d9b..793a23c 100644 --- a/pv/prop/string.h +++ b/pv/prop/string.h @@ -30,15 +30,20 @@ namespace prop { class String : public Property { + Q_OBJECT; + public: String(QString name, Getter getter, Setter setter); - QWidget* get_widget(QWidget *parent); + QWidget* get_widget(QWidget *parent, bool auto_commit); void commit(); +private Q_SLOTS: + void on_text_edited(const QString&); + private: - QLineEdit *_line_edit; + QLineEdit *line_edit_; }; } // prop