X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Ftopicwidget.h;h=9492d847de392b30ef66eccd54a00c563173a822;hp=f899a2baa30c721f3c0feeff25d04b0e588eab2d;hb=87828aeae2510b29619aa79a3bd76885e2c1ebd4;hpb=dcba0652ac1275877b98b06d6482924ee6df0cd1 diff --git a/src/qtui/topicwidget.h b/src/qtui/topicwidget.h index f899a2ba..9492d847 100644 --- a/src/qtui/topicwidget.h +++ b/src/qtui/topicwidget.h @@ -29,20 +29,25 @@ class TopicWidget : public QWidget { Q_OBJECT Q_PROPERTY(QString topic READ topic WRITE setTopic STORED false) - public: - TopicWidget(QWidget *parent = 0); - - inline QString topic() const { return ui.topicLineEdit->text(); } - void setTopic(const QString &newtopic); - - signals: - void topicChanged(const QString &text); - - private slots: - void on_topicLineEdit_returnPressed(); +public: + TopicWidget(QWidget *parent = 0); + + inline QString topic() const { return ui.topicLineEdit->text(); } + void setTopic(const QString &newtopic); + + virtual bool eventFilter(QObject *obj, QEvent *event); + +signals: + void topicChanged(const QString &text); + +private slots: + void on_topicLineEdit_returnPressed(); + void on_topicButton_clicked(); + void switchEditable(); + void switchPlain(); - private: - Ui::TopicWidget ui; +private: + Ui::TopicWidget ui; };