]> git.sur5r.net Git - minitube/commitdiff
Add enabledChanged signal
authorFlavio Tordini <flavio.tordini@gmail.com>
Fri, 4 Sep 2015 13:31:15 +0000 (15:31 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Fri, 4 Sep 2015 13:31:15 +0000 (15:31 +0200)
src/searchlineedit.cpp
src/searchlineedit.h

index 1f9fd3f65bc02df1f917b445b7eca9f77f6b34c8..37ebe2988d8d5fc583ce9d2f57baff7ab8ac1656 100644 (file)
@@ -162,3 +162,8 @@ QString SearchLineEdit::text() {
 QLineEdit *SearchLineEdit::getLineEdit() {
     return m_lineEdit;
 }
+
+void SearchLineEdit::setEnabled(bool enabled) {
+    ExLineEdit::setEnabled(enabled);
+    emit enabledChanged(enabled);
+}
index 7128994f4bab72b20602cd0a3f8d549f447094ff..d7d8c8b11b4a0eef6e947873bfd4824f48991c4f 100644 (file)
@@ -33,6 +33,8 @@ public:
     QLineEdit *getLineEdit();
     QWidget *toWidget() { return qobject_cast<QWidget*>(this); }
 
+    void setEnabled(bool enabled);
+
 public slots:
     void returnPressed();
 
@@ -42,6 +44,8 @@ signals:
     void search(const QString &text);
     void suggestionAccepted(Suggestion *suggestion);
 
+    void enabledChanged(bool enabled);
+
 protected:
     void updateGeometries();
     void resizeEvent(QResizeEvent *e);