diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-04 19:06:43 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-04 19:06:43 +0100 |
| commit | 85cd33715723f294abeeb8a0f3f77c0de27f6a37 (patch) | |
| tree | d290cb566abb0a3c238b85bf402d184480f9e17d /src/qtgroupingproxy.h | |
| parent | 7d53976ecc7c289ec44b8740a57758c6132aa6a9 (diff) | |
Disable proxies when they are not used.
Diffstat (limited to 'src/qtgroupingproxy.h')
| -rw-r--r-- | src/qtgroupingproxy.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qtgroupingproxy.h b/src/qtgroupingproxy.h index 6567cb0e..131f33dc 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,10 +80,10 @@ public: virtual QModelIndex addEmptyGroup( const RowData &data );
virtual bool removeGroup( const QModelIndex &idx );
- QStringList expandedState();
+ void refreshExpandedItems() const ;
signals:
- void expandItem(const QModelIndex &index);
+ void expandItem(const QModelIndex &index) const;
public slots:
/**
|
