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.actionAbout, &QAction::triggered, this, &AutoTester::about);
connect(_ui.actionContent, &QAction::triggered, this, &AutoTester::content); connect(_ui.actionContent, &QAction::triggered, this, &AutoTester::content);
// The second tab hides and shows the Windows task bar
#ifndef Q_OS_WIN #ifndef Q_OS_WIN
_ui.tabWidget->setTabEnabled(3, false); _ui.tabWidget->removeTab(1);
#endif #endif
// _helpWindow.textBrowser->setText() //// _helpWindow.textBrowser->setText()
} }
void AutoTester::setup() { void AutoTester::setup() {

View file

@ -43,7 +43,7 @@
</rect> </rect>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>2</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="tab_1"> <widget class="QWidget" name="tab_1">
<attribute name="title"> <attribute name="title">
@ -154,6 +154,37 @@
</property> </property>
</widget> </widget>
</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"> <widget class="QWidget" name="tab">
<attribute name="title"> <attribute name="title">
<string>Run</string> <string>Run</string>
@ -279,37 +310,6 @@
</property> </property>
</widget> </widget>
</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>
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="geometry"> <property name="geometry">
@ -387,7 +387,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>582</width> <width>582</width>
<height>26</height> <height>21</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">