X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuisupport%2Fbufferviewfilter.h;h=56fa974a7364c3028e29a9c24ccb45a131292220;hb=0f206dd896485276cf25025e562c812b8c7fc5da;hp=4a80f7ecd5b9817e4a4a144db8e932fb6ad49416;hpb=6fe30667a4a4747e8fad048dad499f7d2390b044;p=quassel.git diff --git a/src/uisupport/bufferviewfilter.h b/src/uisupport/bufferviewfilter.h index 4a80f7ec..56fa974a 100644 --- a/src/uisupport/bufferviewfilter.h +++ b/src/uisupport/bufferviewfilter.h @@ -61,12 +61,12 @@ public: void setConfig(BufferViewConfig *config); inline BufferViewConfig *config() const { return _config; } + virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); + public slots: - void removeBuffer(const QModelIndex &); void checkPreviousCurrentForRemoval(const QModelIndex ¤t, const QModelIndex &previous); void checkItemForRemoval(const QModelIndex &index) { checkItemsForRemoval(index, index); } void checkItemsForRemoval(const QModelIndex &topLeft, const QModelIndex &bottomRight); - void source_rowsInserted(const QModelIndex &parent, int start, int end); protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; @@ -77,9 +77,13 @@ protected: signals: void _dataChanged(const QModelIndex &source_topLeft, const QModelIndex &source_bottomRight); - + +private slots: + void configInitialized(); + private: QPointer _config; + Qt::SortOrder _sortOrder; QColor _FgColorInactiveActivity; QColor _FgColorNoActivity; @@ -90,7 +94,7 @@ private: bool filterAcceptBuffer(const QModelIndex &) const; bool filterAcceptNetwork(const QModelIndex &) const; - void addBuffer(const BufferId &); + void addBuffer(const BufferId &) const; }; Q_DECLARE_OPERATORS_FOR_FLAGS(BufferViewFilter::Modes)