Ref T447, utility function to set on top flag

Also a signal when "always on top" was triggered
This commit is contained in:
Klaus Basan
2018-12-11 09:00:15 +01:00
parent c591728e88
commit 08495a7854
6 changed files with 45 additions and 8 deletions

View File

@@ -996,6 +996,7 @@ namespace BlackGui
if (!w) { return false; }
const bool onTop = CGuiUtility::toggleStayOnTop(w);
CLogMessage(w).info(onTop ? QStringLiteral("Window on top") : QStringLiteral("Window not always on top"));
emit this->alwaysOnTop(onTop);
return onTop;
}