X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Ftopicwidget.h;h=f293851df53a95529584336edf29eb87fa9430c3;hp=b8fcb420092438575b08c40ae71d1780f1c98623;hb=7c74d84b7684b2e7d96736a1122184c2ce19fcc7;hpb=42ff4d2a759746ccd65440a0dfc2e233e0b777ed diff --git a/src/qtui/topicwidget.h b/src/qtui/topicwidget.h index b8fcb420..f293851d 100644 --- a/src/qtui/topicwidget.h +++ b/src/qtui/topicwidget.h @@ -31,10 +31,12 @@ 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; } protected slots: virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); @@ -55,6 +57,8 @@ private: QString _topic; bool _mouseEntered; + bool _readonly; + };