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