X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Ftopicwidget.h;h=f899a2baa30c721f3c0feeff25d04b0e588eab2d;hp=d6c1ab9c850884e03bd5f0f6d47bc144a7087f5b;hb=cd0868fff76dd067470881134fd736e1a1d97e71;hpb=9fd4619e9aca7d53d7c5df156a0b25956a1bf682 diff --git a/src/qtui/topicwidget.h b/src/qtui/topicwidget.h index d6c1ab9c..f899a2ba 100644 --- a/src/qtui/topicwidget.h +++ b/src/qtui/topicwidget.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * + * Copyright (C) 2005/06 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -27,14 +27,22 @@ 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); + 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; };