mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Added comments.
This commit is contained in:
parent
54b64c59d7
commit
590b4f91c5
2 changed files with 15 additions and 11 deletions
|
@ -66,16 +66,10 @@ void AutoTester::on_createTestsOutlineButton_clicked() {
|
||||||
test->createTestsOutline();
|
test->createTestsOutline();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoTester::on_showTaskbarButton_clicked() {
|
// To toggle between show and hide
|
||||||
#ifdef Q_OS_WIN
|
// if (uState & ABS_AUTOHIDE) on_showTaskbarButton_clicked();
|
||||||
APPBARDATA abd = { sizeof abd };
|
// else on_hideTaskbarButton_clicked();
|
||||||
UINT uState = (UINT)SHAppBarMessage(ABM_GETSTATE, &abd);
|
//
|
||||||
LPARAM param = uState & ABS_ALWAYSONTOP;
|
|
||||||
abd.lParam = param;
|
|
||||||
SHAppBarMessage(ABM_SETSTATE, &abd);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void AutoTester::on_hideTaskbarButton_clicked() {
|
void AutoTester::on_hideTaskbarButton_clicked() {
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
APPBARDATA abd = { sizeof abd };
|
APPBARDATA abd = { sizeof abd };
|
||||||
|
@ -86,6 +80,16 @@ void AutoTester::on_hideTaskbarButton_clicked() {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AutoTester::on_showTaskbarButton_clicked() {
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
APPBARDATA abd = { sizeof abd };
|
||||||
|
UINT uState = (UINT)SHAppBarMessage(ABM_GETSTATE, &abd);
|
||||||
|
LPARAM param = uState & ABS_ALWAYSONTOP;
|
||||||
|
abd.lParam = param;
|
||||||
|
SHAppBarMessage(ABM_SETSTATE, &abd);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void AutoTester::on_closeButton_clicked() {
|
void AutoTester::on_closeButton_clicked() {
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,8 +37,8 @@ private slots:
|
||||||
void on_createAllMDFilesButton_clicked();
|
void on_createAllMDFilesButton_clicked();
|
||||||
void on_createTestsOutlineButton_clicked();
|
void on_createTestsOutlineButton_clicked();
|
||||||
|
|
||||||
void on_showTaskbarButton_clicked();
|
|
||||||
void on_hideTaskbarButton_clicked();
|
void on_hideTaskbarButton_clicked();
|
||||||
|
void on_showTaskbarButton_clicked();
|
||||||
|
|
||||||
void on_closeButton_clicked();
|
void on_closeButton_clicked();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue