summaryrefslogtreecommitdiff
path: root/src/modlistbypriorityproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modlistbypriorityproxy.cpp')
-rw-r--r--src/modlistbypriorityproxy.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modlistbypriorityproxy.cpp b/src/modlistbypriorityproxy.cpp
index 756d3bcf..86664213 100644
--- a/src/modlistbypriorityproxy.cpp
+++ b/src/modlistbypriorityproxy.cpp
@@ -82,7 +82,7 @@ void ModListByPriorityProxy::buildTree()
expandItems(QModelIndex());
}
-void ModListByPriorityProxy::expandItems(const QModelIndex& index)
+void ModListByPriorityProxy::expandItems(const QModelIndex& index) const
{
for (int row = 0; row < rowCount(index); row++) {
QModelIndex idx = this->index(row, 0, index);
@@ -298,6 +298,11 @@ void ModListByPriorityProxy::onDropEnter(const QMimeData*, ModListView::DropPosi
m_DropPosition = dropPosition;
}
+void ModListByPriorityProxy::refreshExpandedItems() const
+{
+ expandItems(QModelIndex());
+}
+
void ModListByPriorityProxy::expanded(const QModelIndex& index)
{
auto it = m_CollapsedItems.find(index.data(Qt::DisplayRole).toString());