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);
QString _topic;
bool _mouseEntered;
+ bool _readonly;
+
};