Skip to content

Commit

Permalink
MainWindow: Hiding soruce label on monitoring state
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Mar 17, 2016
1 parent 36d199a commit 3f48b39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions guilib/src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5363,6 +5363,8 @@ void MainWindow::setMonitoringState(bool pauseChecked)
void MainWindow::changeState(MainWindow::State newState)
{
bool monitoring = newState==kMonitoring || newState == kMonitoringPaused;
_ui->label_source->setVisible(!monitoring);
_ui->label_stats_source->setVisible(!monitoring);
_ui->actionNew_database->setVisible(!monitoring);
_ui->actionOpen_database->setVisible(!monitoring);
_ui->actionClose_database->setVisible(!monitoring);
Expand Down
4 changes: 2 additions & 2 deletions guilib/src/ui/mainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<x>0</x>
<y>0</y>
<width>1012</width>
<height>22</height>
<height>25</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
Expand Down Expand Up @@ -357,7 +357,7 @@
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_24">
<widget class="QLabel" name="label_source">
<property name="text">
<string>Source</string>
</property>
Expand Down

0 comments on commit 3f48b39

Please sign in to comment.