Hide Windows tab on non-Windows machines.

This commit is contained in:
NissimHadar 2018-09-04 20:43:45 -07:00
parent bcec0c8fbd
commit 825be44eeb
2 changed files with 36 additions and 35 deletions

View file

@ -28,11 +28,12 @@ AutoTester::AutoTester(QWidget* parent) : QMainWindow(parent) {
connect(_ui.actionAbout, &QAction::triggered, this, &AutoTester::about);
connect(_ui.actionContent, &QAction::triggered, this, &AutoTester::content);
// The second tab hides and shows the Windows task bar
#ifndef Q_OS_WIN
_ui.tabWidget->setTabEnabled(3, false);
_ui.tabWidget->removeTab(1);
#endif
// _helpWindow.textBrowser->setText()
//// _helpWindow.textBrowser->setText()
}
void AutoTester::setup() {

View file

@ -43,7 +43,7 @@
</rect>
</property>
<property name="currentIndex">
<number>2</number>
<number>1</number>
</property>
<widget class="QWidget" name="tab_1">
<attribute name="title">
@ -154,6 +154,37 @@
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>Windows</string>
</attribute>
<widget class="QPushButton" name="hideTaskbarButton">
<property name="geometry">
<rect>
<x>160</x>
<y>130</y>
<width>211</width>
<height>40</height>
</rect>
</property>
<property name="text">
<string>Hide Windows Taskbar</string>
</property>
</widget>
<widget class="QPushButton" name="showTaskbarButton">
<property name="geometry">
<rect>
<x>160</x>
<y>200</y>
<width>211</width>
<height>40</height>
</rect>
</property>
<property name="text">
<string>Show Windows Taskbar</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Run</string>
@ -279,37 +310,6 @@
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>Windows</string>
</attribute>
<widget class="QPushButton" name="hideTaskbarButton">
<property name="geometry">
<rect>
<x>160</x>
<y>130</y>
<width>211</width>
<height>40</height>
</rect>
</property>
<property name="text">
<string>Hide Windows Taskbar</string>
</property>
</widget>
<widget class="QPushButton" name="showTaskbarButton">
<property name="geometry">
<rect>
<x>160</x>
<y>200</y>
<width>211</width>
<height>40</height>
</rect>
</property>
<property name="text">
<string>Show Windows Taskbar</string>
</property>
</widget>
</widget>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
@ -387,7 +387,7 @@
<x>0</x>
<y>0</y>
<width>582</width>
<height>26</height>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">