X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Ftopicwidget.h;h=c390549e544361448fef07147fde1db7de80bfbf;hb=32dee9bed2840534e41764a6ba759d425837b8a2;hp=b8fcb420092438575b08c40ae71d1780f1c98623;hpb=7b709c7036d1949874a5a40463c09be71d45fdc4;p=quassel.git diff --git a/src/qtui/topicwidget.h b/src/qtui/topicwidget.h index b8fcb420..c390549e 100644 --- a/src/qtui/topicwidget.h +++ b/src/qtui/topicwidget.h @@ -31,10 +31,15 @@ class TopicWidget : public AbstractItemView { public: TopicWidget(QWidget *parent = 0); - void setTopic(const QString &newtopic); + void setTopic(const QModelIndex& index); void setCustomFont(const QFont &); + void setReadOnly(const bool &readonly); virtual bool eventFilter(QObject *obj, QEvent *event); + inline bool isReadOnly() const { return _readonly; } + + signals: + void switchedPlain(); protected slots: virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); @@ -55,6 +60,8 @@ private: QString _topic; bool _mouseEntered; + bool _readonly; + };