Changeset 56307f8


Ignore:
Timestamp:
06/12/12 23:11:06 (10 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
41ff1b6
Parents:
8f15208
Message:

Implemented expand/collapse of the event groups. Resolves ticket #31.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r8f15208 r56307f8  
    172172
    173173void MainWindow::on_expandAllAction_triggered() {
    174 
     174    if (tabWidget->currentWidget() == favouritesTab) favsTabContainer->treeView->expandAll();
     175    if (tabWidget->currentWidget() == dayViewTab) dayTabContainer->treeView->expandAll();
     176    if (tabWidget->currentWidget() == tracksTab) tracksTabContainer->treeView->expandAll();
     177    if (tabWidget->currentWidget() == roomsTab) roomsTabContainer->treeView->expandAll();
     178    if (tabWidget->currentWidget() == searchTab) searchTabContainer->treeView->expandAll();
    175179}
    176180
    177181
    178182void MainWindow::on_collapseAllAction_triggered() {
    179 
     183    if (tabWidget->currentWidget() == favouritesTab) favsTabContainer->treeView->collapseAll();
     184    if (tabWidget->currentWidget() == dayViewTab) dayTabContainer->treeView->collapseAll();
     185    if (tabWidget->currentWidget() == tracksTab) tracksTabContainer->treeView->collapseAll();
     186    if (tabWidget->currentWidget() == roomsTab) roomsTabContainer->treeView->collapseAll();
     187    if (tabWidget->currentWidget() == searchTab) searchTabContainer->treeView->collapseAll();
    180188}
    181189
Note: See TracChangeset for help on using the changeset viewer.