projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid circular #includes to shut up lupdate
[quassel.git]
/
src
/
qtui
/
topicwidget.h
diff --git
a/src/qtui/topicwidget.h
b/src/qtui/topicwidget.h
index
18eae86
..
c390549
100644
(file)
--- a/
src/qtui/topicwidget.h
+++ b/
src/qtui/topicwidget.h
@@
-31,9
+31,15
@@
class TopicWidget : public AbstractItemView {
public:
TopicWidget(QWidget *parent = 0);
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);
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);
@@
-45,11
+51,17
@@
private slots:
void switchEditable();
void switchPlain();
void clickableActivated(const Clickable &);
void switchEditable();
void switchPlain();
void clickableActivated(const Clickable &);
+ void updateResizeMode();
+ void setCustomFont(const QVariant &);
+ void setUseCustomFont(const QVariant &);
private:
Ui::TopicWidget ui;
QString _topic;
private:
Ui::TopicWidget ui;
QString _topic;
+ bool _mouseEntered;
+ bool _readonly;
+
};
};