summaryrefslogtreecommitdiff
path: root/src/modlistbypriorityproxy.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-04 19:37:20 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-04 19:37:20 +0100
commitb242394c0f9c24ca8f9bbced44076abbcd274fee (patch)
treeaf51b9c5b4fe0668d996c4d8f15298fa255a1a89 /src/modlistbypriorityproxy.h
parent85cd33715723f294abeeb8a0f3f77c0de27f6a37 (diff)
Keep track of expanded items in the view instead of the models.
Diffstat (limited to 'src/modlistbypriorityproxy.h')
-rw-r--r--src/modlistbypriorityproxy.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/modlistbypriorityproxy.h b/src/modlistbypriorityproxy.h
index e5a8adff..6b48678a 100644
--- a/src/modlistbypriorityproxy.h
+++ b/src/modlistbypriorityproxy.h
@@ -44,28 +44,17 @@ public:
QModelIndex mapFromSource(const QModelIndex& sourceIndex) const override;
QModelIndex mapToSource(const QModelIndex& proxyIndex) const override;
- // check the internal state for expanded/collapse items and emit a expandItem
- // signal for each of the expanded item, useful to refresh the tree state after
- // layout modification
- void refreshExpandedItems() const;
-
-signals:
- void expandItem(const QModelIndex& index) const;
-
public slots:
void onDropEnter(const QMimeData* data, ModListView::DropPosition dropPosition);
- void expanded(const QModelIndex& index);
- void collapsed(const QModelIndex& index);
-protected:
+protected slots:
void modelDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector<int>& roles = QVector<int>());
private:
void buildTree();
- void expandItems(const QModelIndex& index) const;
struct TreeItem {
ModInfo::Ptr mod;