projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No longer disable the input widget for inactive buffers
[quassel.git]
/
src
/
qtui
/
topicwidget.h
diff --git
a/src/qtui/topicwidget.h
b/src/qtui/topicwidget.h
index
b8fcb42
..
c390549
100644
(file)
--- a/
src/qtui/topicwidget.h
+++ b/
src/qtui/topicwidget.h
@@
-31,10
+31,15
@@
class TopicWidget : public AbstractItemView {
public:
TopicWidget(QWidget *parent = 0);
public:
TopicWidget(QWidget *parent = 0);
- void setTopic(const Q
String &newtopic
);
+ void setTopic(const Q
ModelIndex& index
);
void setCustomFont(const QFont &);
void setCustomFont(const QFont &);
+ void setReadOnly(const bool &readonly);
virtual bool eventFilter(QObject *obj, QEvent *event);
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);
protected slots:
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
@@
-55,6
+60,8
@@
private:
QString _topic;
bool _mouseEntered;
QString _topic;
bool _mouseEntered;
+ bool _readonly;
+
};
};