Fixed "window on top"

* do not show navigator
* no longer "on top" does not mean "on bottom"
* Qt::QueuedConnection
This commit is contained in:
Klaus Basan
2019-05-24 23:52:37 +02:00
parent 430f88d700
commit b28d8c7439
5 changed files with 8 additions and 7 deletions

View File

@@ -131,7 +131,7 @@ namespace BlackGui
int m_currentColumns = 1;
QWidgetAction *m_marginMenuAction = nullptr; //!< menu widget(!) action for margin widget
CMarginsInput *m_input = nullptr; //!< margins widget
QTimer m_watchdog;
QTimer m_watchdog; //!< navigator watchdog
BlackMisc::CSetting<BlackGui::Settings::TNavigator> m_settings { this, &CNavigatorDialog::onSettingsChanged };
};
} // ns

View File

@@ -1118,7 +1118,7 @@ namespace BlackGui
bool CGuiApplication::toggleStayOnTop()
{
QWidget *w = CGuiApplication::mainApplicationWidget();
QMainWindow *w = CGuiApplication::mainApplicationWindow();
if (!w) { return false; }
const bool onTop = CGuiUtility::toggleStayOnTop(w);
CLogMessage(w).info(onTop ? QStringLiteral("Window on top") : QStringLiteral("Window not always on top"));

View File

@@ -393,7 +393,7 @@ namespace BlackGui
if (Qt::WindowStaysOnTopHint & flags)
{
flags &= ~Qt::WindowStaysOnTopHint;
flags |= Qt::WindowStaysOnBottomHint;
// flags |= Qt::WindowStaysOnBottomHint;
}
else
{