X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Ftopicwidget.h;h=c390549e544361448fef07147fde1db7de80bfbf;hp=b8fcb420092438575b08c40ae71d1780f1c98623;hb=49813fa53b34ffa35837d30fd022e2fc72f57eb5;hpb=7b709c7036d1949874a5a40463c09be71d45fdc4 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; + };