Reduce spacings in main window and hide status bar whihile in full screen mode.

This commit is contained in:
Alexandru Csete 2012-05-04 23:20:35 +02:00
parent 85abcb1d1b
commit 12602e6ab1
2 changed files with 29 additions and 1 deletions

View File

@ -907,9 +907,15 @@ void MainWindow::setAudioFftRate(int fps)
void MainWindow::on_actionFullScreen_triggered(bool checked)
{
if (checked)
{
ui->statusBar->hide();
showFullScreen();
}
else
{
ui->statusBar->show();
showNormal();
}
}
/*! \brief Action: I/O device configurator triggered.

View File

@ -22,8 +22,26 @@
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>2</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>2</number>
</property>
<item>
<widget class="CFreqCtrl" name="freqCtrl">
<property name="sizePolicy">
@ -157,7 +175,11 @@
<addaction name="separator"/>
<addaction name="actionFullScreen"/>
</widget>
<widget class="QStatusBar" name="statusBar"/>
<widget class="QStatusBar" name="statusBar">
<property name="enabled">
<bool>true</bool>
</property>
</widget>
<action name="actionQuit">
<property name="text">
<string>Quit</string>