File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -745,22 +745,34 @@ static inline void releaseWindowProxy(const WId windowId) {
745
745
Q_ASSERT (m_windowId);
746
746
747
747
if (key == QStringLiteral (" no-system-buttons" )) {
748
+ #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
748
749
if (attribute.type () != QVariant::Bool)
750
+ #else
751
+ if (attribute.typeId () != QMetaType::Type::Bool)
752
+ #endif
749
753
return false ;
750
754
ensureWindowProxy (m_windowId)->setSystemButtonVisible (!attribute.toBool ());
751
755
return true ;
752
756
}
753
757
754
758
if (key == QStringLiteral (" blur-effect" )) {
755
759
auto mode = NSWindowProxy::BlurMode::None;
760
+ #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
756
761
if (attribute.type () == QVariant::Bool) {
762
+ #else
763
+ if (attribute.typeId () == QMetaType::Type::Bool) {
764
+ #endif
757
765
if (attribute.toBool ()) {
758
766
NSString *osxMode =
759
767
[[NSUserDefaults standardUserDefaults ] stringForKey: @" AppleInterfaceStyle" ];
760
768
mode = [osxMode isEqualToString: @" Dark" ] ? NSWindowProxy::BlurMode::Dark
761
769
: NSWindowProxy::BlurMode::Light;
762
770
}
771
+ #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
763
772
} else if (attribute.type () == QVariant::String) {
773
+ #else
774
+ } else if (attribute.typeId () == QMetaType::Type::QString) {
775
+ #endif
764
776
auto value = attribute.toString ();
765
777
if (value == QStringLiteral (" dark" )) {
766
778
mode = NSWindowProxy::BlurMode::Dark;
You can’t perform that action at this time.
0 commit comments