summaryrefslogtreecommitdiff
path: root/src/qtgroupingproxy.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2021-01-10 10:25:37 +0100
committerGitHub <noreply@github.com>2021-01-10 10:25:37 +0100
commit80e44a9e3ade61695b4807a3a900d2866138ecac (patch)
tree1ef9904664d8d34dba6692bbf5325aea8c199d08 /src/qtgroupingproxy.h
parenteaec140f7c823012c09536175d8917dddcacdb7c (diff)
parent4a0ce804ea486744e5f6140a0ce4538d99e21ce3 (diff)
Merge pull request #1338 from Holt59/collapsible-separators
Collapsible separators (and refactoring).
Diffstat (limited to 'src/qtgroupingproxy.h')
-rw-r--r--src/qtgroupingproxy.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/qtgroupingproxy.h b/src/qtgroupingproxy.h
index 6567cb0e..c4459297 100644
--- a/src/qtgroupingproxy.h
+++ b/src/qtgroupingproxy.h
@@ -47,12 +47,13 @@ public:
};
public:
- explicit QtGroupingProxy( QAbstractItemModel *model, QModelIndex rootNode = QModelIndex(),
+ explicit QtGroupingProxy( QModelIndex rootNode = QModelIndex(),
int groupedColumn = -1, int groupedRole = Qt::DisplayRole,
unsigned int flags = 0,
int aggregateRole = Qt::DisplayRole);
~QtGroupingProxy();
+ void setSourceModel(QAbstractItemModel* model) override;
void setGroupedColumn( int groupedColumn );
/* QAbstractProxyModel methods */
@@ -79,22 +80,6 @@ public:
virtual QModelIndex addEmptyGroup( const RowData &data );
virtual bool removeGroup( const QModelIndex &idx );
- QStringList expandedState();
-
-signals:
- void expandItem(const QModelIndex &index);
-
-public slots:
- /**
- * @brief update expanded state
- * @param index index of the expanded/collapsed item (from the base model!)
- */
- void expanded(const QModelIndex &index);
- /**
- * @brief update expanded state
- * @param index index of the expanded/collapsed item (from the base model!)
- */
- void collapsed(const QModelIndex &index);
protected slots:
virtual void buildTree();
@@ -158,7 +143,6 @@ protected:
void dumpGroups() const;
private:
- QSet<QString> m_expandedItems;
unsigned int m_flags;
int m_groupedRole;