X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Ftopicwidget.h;h=f899a2baa30c721f3c0feeff25d04b0e588eab2d;hp=c28a2eb43c627da99edcf47058952337a52e59ca;hb=dcba0652ac1275877b98b06d6482924ee6df0cd1;hpb=f1e45389df014fb5445ee96769bf02dcf34f1e21 diff --git a/src/qtui/topicwidget.h b/src/qtui/topicwidget.h index c28a2eb4..f899a2ba 100644 --- a/src/qtui/topicwidget.h +++ b/src/qtui/topicwidget.h @@ -29,15 +29,20 @@ class TopicWidget : public QWidget { Q_OBJECT Q_PROPERTY(QString topic READ topic WRITE setTopic STORED false) -public: - TopicWidget(QWidget *parent = 0); - virtual ~TopicWidget(); + public: + TopicWidget(QWidget *parent = 0); - QString topic() const; - void setTopic(const QString &newtopic); + 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(); -private: - Ui::TopicWidget ui; + private: + Ui::TopicWidget ui; };