From 825be44eebb0e299fd8c85f47f337abd2585bbbf Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Tue, 4 Sep 2018 20:43:45 -0700 Subject: [PATCH] Hide Windows tab on non-Windows machines. --- tools/auto-tester/src/ui/AutoTester.cpp | 5 +- tools/auto-tester/src/ui/AutoTester.ui | 66 ++++++++++++------------- 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/tools/auto-tester/src/ui/AutoTester.cpp b/tools/auto-tester/src/ui/AutoTester.cpp index 5056e888a7..0b18f02b10 100644 --- a/tools/auto-tester/src/ui/AutoTester.cpp +++ b/tools/auto-tester/src/ui/AutoTester.cpp @@ -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() { diff --git a/tools/auto-tester/src/ui/AutoTester.ui b/tools/auto-tester/src/ui/AutoTester.ui index 0a68a1754d..8c95bba7d1 100644 --- a/tools/auto-tester/src/ui/AutoTester.ui +++ b/tools/auto-tester/src/ui/AutoTester.ui @@ -43,7 +43,7 @@ - 2 + 1 @@ -154,6 +154,37 @@ + + + Windows + + + + + 160 + 130 + 211 + 40 + + + + Hide Windows Taskbar + + + + + + 160 + 200 + 211 + 40 + + + + Show Windows Taskbar + + + Run @@ -279,37 +310,6 @@ - - - Windows - - - - - 160 - 130 - 211 - 40 - - - - Hide Windows Taskbar - - - - - - 160 - 200 - 211 - 40 - - - - Show Windows Taskbar - - - @@ -387,7 +387,7 @@ 0 0 582 - 26 + 21