summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-27 19:44:14 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:15 +0100
commit14bdef9ea68ce1dd8945113f1dece595adf4f013 (patch)
treee731248b65fd0d6a3164603724ea9cec876aba96 /src/mainwindow.cpp
parent1e2297604b797f1ea15d91b43f227114deedaeb0 (diff)
Add collapse/expand all actions.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 15564c21..7f9e81fc 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4555,7 +4555,11 @@ void MainWindow::initModListContextMenu(QMenu *menu)
{
menu->addAction(tr("Install Mod..."), this, SLOT(installMod_clicked()));
menu->addAction(tr("Create empty mod"), this, SLOT(createEmptyMod_clicked()));
+
+ menu->addSeparator();
menu->addAction(tr("Create Separator"), this, SLOT(createSeparator_clicked()));
+ menu->addAction(tr("Collapse all"), ui->modList, &QTreeView::collapseAll);
+ menu->addAction(tr("Expand all"), ui->modList, &QTreeView::expandAll);
menu->addSeparator();