RibbonSplashScreen: Fix for macOS in Qt 6.
This commit is contained in:
parent
9ba6675bd7
commit
c367541af8
|
@ -108,6 +108,7 @@ Window {
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
windowAgent.setup(root)
|
windowAgent.setup(root)
|
||||||
|
root.flags |= Qt.WindowStaysOnTopHint
|
||||||
if (Qt.platform.os === 'windows')
|
if (Qt.platform.os === 'windows')
|
||||||
{
|
{
|
||||||
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)
|
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)
|
||||||
|
@ -117,7 +118,6 @@ Window {
|
||||||
windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.isDarkMode ? "dark" : "light" : "none")
|
windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.isDarkMode ? "dark" : "light" : "none")
|
||||||
PlatformSupport.showSystemTitleBtns(root, false)
|
PlatformSupport.showSystemTitleBtns(root, false)
|
||||||
}
|
}
|
||||||
root.flags |= Qt.WindowStaysOnTopHint
|
|
||||||
root.visible = true
|
root.visible = true
|
||||||
windowAgent.centralize()
|
windowAgent.centralize()
|
||||||
raise()
|
raise()
|
||||||
|
|
|
@ -108,6 +108,7 @@ Window {
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
windowAgent.setup(root)
|
windowAgent.setup(root)
|
||||||
|
root.flags |= Qt.WindowStaysOnTopHint
|
||||||
if (Qt.platform.os === 'windows')
|
if (Qt.platform.os === 'windows')
|
||||||
{
|
{
|
||||||
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)
|
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)
|
||||||
|
@ -117,7 +118,6 @@ Window {
|
||||||
windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.isDarkMode ? "dark" : "light" : "none")
|
windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.isDarkMode ? "dark" : "light" : "none")
|
||||||
PlatformSupport.showSystemTitleBtns(root, false)
|
PlatformSupport.showSystemTitleBtns(root, false)
|
||||||
}
|
}
|
||||||
root.flags |= Qt.WindowStaysOnTopHint
|
|
||||||
root.visible = true
|
root.visible = true
|
||||||
windowAgent.centralize()
|
windowAgent.centralize()
|
||||||
raise()
|
raise()
|
||||||
|
|
Loading…
Reference in New Issue