MainWindow: Hiding soruce label on monitoring state

This commit is contained in:
matlabbe
2016-03-17 10:47:50 -04:00
parent 36d199a2b3
commit 3f48b39ccb
2 changed files with 4 additions and 2 deletions

View File

@@ -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);

View File

@@ -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">
@@ -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>