aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Amit Chaudhuri <amit.k.chaudhuri@gmail.com>2013-04-10 08:07:02 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-10 07:35:07 -0700
commit6e02e9d5b7857d78a4f941b49bf884b1b96a58fe (patch)
tree297314d012ae9b3cab68f32d44a78188adfb2719 /qt-ui/mainwindow.cpp
parent55106a75831af9260858896118d576c5156dc5d2 (diff)
downloadsubsurface-6e02e9d5b7857d78a4f941b49bf884b1b96a58fe.tar.gz
Add logic to switch views
Rename the 3 main widgets in the Qt mainwindow. Wire view menu options to the setVisible methods of same. Signed-off-by: Amit Chaudhuri <amit.k.chaudhuri@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 502bd9774..36b9798ee 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -99,21 +99,37 @@ void MainWindow::on_actionYearlyStatistics_triggered()
void MainWindow::on_actionViewList_triggered()
{
qDebug("actionViewList");
+
+ ui->InfoWidget->setVisible(false);
+ ui->ListWidget->setVisible(true);
+ ui->ProfileWidget->setVisible(false);
}
void MainWindow::on_actionViewProfile_triggered()
{
qDebug("actionViewProfile");
+
+ ui->InfoWidget->setVisible(false);
+ ui->ListWidget->setVisible(false);
+ ui->ProfileWidget->setVisible(true);
}
void MainWindow::on_actionViewInfo_triggered()
{
qDebug("actionViewInfo");
+
+ ui->InfoWidget->setVisible(true);
+ ui->ListWidget->setVisible(false);
+ ui->ProfileWidget->setVisible(false);
}
void MainWindow::on_actionViewAll_triggered()
{
qDebug("actionViewAll");
+
+ ui->InfoWidget->setVisible(true);
+ ui->ListWidget->setVisible(true);
+ ui->ProfileWidget->setVisible(true);
}
void MainWindow::on_actionPreviousDC_triggered()