/***************************************************************************
- * Copyright (C) 2005/06 by the Quassel IRC 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 *
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;
};