Skip to content

QWKCore/cocoawindowcontext: Use typeId() instead of type() in Qt 6.0+.#181

Merged
wangwenx190 merged 1 commit intostdware:mainfrom
mentalfl0w:patch-3
May 23, 2025
Merged

QWKCore/cocoawindowcontext: Use typeId() instead of type() in Qt 6.0+.#181
wangwenx190 merged 1 commit intostdware:mainfrom
mentalfl0w:patch-3

Conversation

@mentalfl0w
Copy link
Copy Markdown
Contributor

用typeId()代替type()来消除在Qt 6.0+上出现的编译警告,因为type()已经被标记为弃用。

相关编译警告如下:

warning: 'type' is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
  748 |             if (attribute.type() != QVariant::Bool)

用typeId()代替type()来消除在Qt 6.0+上出现的编译警告,因为type()已经被标记为弃用。
@wangwenx190
Copy link
Copy Markdown
Collaborator

非常感谢!

@wangwenx190 wangwenx190 merged commit 5c04046 into stdware:main May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants