Make the newly arrived topicbutton display background colors and font styles.
[quassel.git] / src / qtui / topicwidget.h
index c28a2eb..9492d84 100644 (file)
@@ -31,10 +31,20 @@ 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;