Fixed a bug in the new topic widget where no repaint event was triggered if only...
[quassel.git] / src / qtui / topicwidget.h
index c28a2eb..c1bae92 100644 (file)
@@ -31,13 +31,25 @@ class TopicWidget : public QWidget {
 
 public:
   TopicWidget(QWidget *parent = 0);
-  virtual ~TopicWidget();
 
-  QString topic() const;
+  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;
+
+  QString _topic;
 };