X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewfilter.h;h=18c32ad6d608af13b7c39ee23e2c3655a7b9fa53;hb=2902a0da662ba40083688a704bd6bd60d0df47bd;hp=7fc623946c6aba95d3bbe2f60cd8bddec58da609;hpb=16923dbe3a43fc11e903639cc026063c38aaad37;p=quassel.git diff --git a/src/uisupport/bufferviewfilter.h b/src/uisupport/bufferviewfilter.h index 7fc62394..18c32ad6 100644 --- a/src/uisupport/bufferviewfilter.h +++ b/src/uisupport/bufferviewfilter.h @@ -61,11 +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 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; @@ -76,12 +77,14 @@ protected: signals: void _dataChanged(const QModelIndex &source_topLeft, const QModelIndex &source_bottomRight); + void configChanged(); private slots: void configInitialized(); private: QPointer _config; + Qt::SortOrder _sortOrder; QColor _FgColorInactiveActivity; QColor _FgColorNoActivity;