mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 21:05:34 +08:00
Fixed "window on top"
* do not show navigator * no longer "on top" does not mean "on bottom" * Qt::QueuedConnection
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -393,7 +393,7 @@ namespace BlackGui
|
||||
if (Qt::WindowStaysOnTopHint & flags)
|
||||
{
|
||||
flags &= ~Qt::WindowStaysOnTopHint;
|
||||
flags |= Qt::WindowStaysOnBottomHint;
|
||||
// flags |= Qt::WindowStaysOnBottomHint;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user