diff options
-rw-r--r-- | qt-ui/mainwindow.cpp | 16 | ||||
-rw-r--r-- | qt-ui/mainwindow.ui | 6 |
2 files changed, 19 insertions, 3 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() diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui index 96751dc0c..65b18c757 100644 --- a/qt-ui/mainwindow.ui +++ b/qt-ui/mainwindow.ui @@ -24,10 +24,10 @@ <property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <widget class="MainTab" name="widget" native="true"/> - <widget class="QGraphicsView" name="graphicsView"/> + <widget class="MainTab" name="InfoWidget" native="true"/> + <widget class="QGraphicsView" name="ProfileWidget"/> </widget> - <widget class="QTableView" name="tableView"/> + <widget class="QTableView" name="ListWidget"/> </widget> </item> <item> |