X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Ftopicwidget.h;h=f293851df53a95529584336edf29eb87fa9430c3;hb=7c74d84b7684b2e7d96736a1122184c2ce19fcc7;hp=18eae860a4fe74e4bfd8a31270ac996b918d8485;hpb=6ce1966d5d3070ad461a976a2bee7cc28e8b9149;p=quassel.git diff --git a/src/qtui/topicwidget.h b/src/qtui/topicwidget.h index 18eae860..f293851d 100644 --- a/src/qtui/topicwidget.h +++ b/src/qtui/topicwidget.h @@ -31,9 +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); @@ -45,11 +48,17 @@ private slots: void switchEditable(); void switchPlain(); void clickableActivated(const Clickable &); + void updateResizeMode(); + void setCustomFont(const QVariant &); + void setUseCustomFont(const QVariant &); private: Ui::TopicWidget ui; QString _topic; + bool _mouseEntered; + bool _readonly; + };