X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=5d19a1386532f9e8f6ac847ea9d0c108e26aad28;hp=0b826e0417830cef1040455e17c47420cda1e22f;hb=32bd64194bedc5c184717ece765922a826bebfd3;hpb=ed955f89251b8bae600080fb79fd033843979cfa diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 0b826e04..5d19a138 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -82,8 +83,6 @@ private slots: void on_configChanged(); void on_layoutChanged(); - void setCustomFont(const QVariant &font); - private: QPointer _config; @@ -98,7 +97,6 @@ private: // ****************************** // BufferViewDelgate // ****************************** -#include class BufferViewDelegate : public QStyledItemDelegate { Q_OBJECT @@ -109,23 +107,8 @@ public: protected: virtual void customEvent(QEvent *event); - virtual void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const; - -private slots: - void colorsChanged(); - void loadColors(); - -private: - QColor _FgColorInactiveActivity; - QColor _FgColorNoActivity; - QColor _FgColorHighlightActivity; - QColor _FgColorNewMessageActivity; - QColor _FgColorOtherActivity; - - bool _updateColors; }; - // ============================== // BufferView Dock // ============================== @@ -135,6 +118,8 @@ class BufferViewDock : public QDockWidget { public: BufferViewDock(BufferViewConfig *config, QWidget *parent); + int bufferViewId() const; + BufferViewConfig *config() const; inline BufferView *bufferView() const { return qobject_cast(widget()); } public slots: