From: Philipp Spitzer Date: Tue, 12 Jun 2012 21:11:06 +0000 (+0000) Subject: Implemented expand/collapse of the event groups. Resolves ticket #31. X-Git-Tag: 0.5.5~6 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/56307f8b0f3995e4da728ded26088982c2dae6b4?ds=sidebyside;hp=8f15208c50a1f7b3d0684549c669d853021902bd Implemented expand/collapse of the event groups. Resolves ticket #31. --- diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 56a23f8..df2ec3d 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -171,12 +171,20 @@ void MainWindow::on_searchAction_triggered() { void MainWindow::on_expandAllAction_triggered() { - + if (tabWidget->currentWidget() == favouritesTab) favsTabContainer->treeView->expandAll(); + if (tabWidget->currentWidget() == dayViewTab) dayTabContainer->treeView->expandAll(); + if (tabWidget->currentWidget() == tracksTab) tracksTabContainer->treeView->expandAll(); + if (tabWidget->currentWidget() == roomsTab) roomsTabContainer->treeView->expandAll(); + if (tabWidget->currentWidget() == searchTab) searchTabContainer->treeView->expandAll(); } void MainWindow::on_collapseAllAction_triggered() { - + if (tabWidget->currentWidget() == favouritesTab) favsTabContainer->treeView->collapseAll(); + if (tabWidget->currentWidget() == dayViewTab) dayTabContainer->treeView->collapseAll(); + if (tabWidget->currentWidget() == tracksTab) tracksTabContainer->treeView->collapseAll(); + if (tabWidget->currentWidget() == roomsTab) roomsTabContainer->treeView->collapseAll(); + if (tabWidget->currentWidget() == searchTab) searchTabContainer->treeView->collapseAll(); }