]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/string.h
Don't use Qt-defined keywords, they can cause problems with other headers.
[pulseview.git] / pv / prop / string.h
index bd95d9b91b3f28aa905ccf0731051969cb1a1049..01c7e78b104fb5662e2ef8294ffc79a06dea6b47 100644 (file)
@@ -30,13 +30,18 @@ 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;
 };