mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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();
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
// To toggle between show and hide
|
||||
// if (uState & ABS_AUTOHIDE) on_showTaskbarButton_clicked();
|
||||
// else on_hideTaskbarButton_clicked();
|
||||
//
|
||||
void AutoTester::on_hideTaskbarButton_clicked() {
|
||||
#ifdef Q_OS_WIN
|
||||
APPBARDATA abd = { sizeof abd };
|
||||
|
@ -86,6 +80,16 @@ void AutoTester::on_hideTaskbarButton_clicked() {
|
|||
#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() {
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
@ -37,8 +37,8 @@ private slots:
|
|||
void on_createAllMDFilesButton_clicked();
|
||||
void on_createTestsOutlineButton_clicked();
|
||||
|
||||
void on_showTaskbarButton_clicked();
|
||||
void on_hideTaskbarButton_clicked();
|
||||
void on_showTaskbarButton_clicked();
|
||||
|
||||
void on_closeButton_clicked();
|
||||
|
||||
|
|
Loading…
Reference in a new issue