Deprecate Qt::MacWindowToolBarButtonHint
It is an old remnant from the Carbon port, and has been a no-op since Qt 5. [ChangeLog][macOS] The Qt::MacWindowToolBarButtonHint flag has been deprecated, as it has been a no-op since Qt 5. Task-number: QTBUG-127634 Change-Id: Ibe0dee5bea423a2fd320806d2751326b3e4a4508 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
1a848744dd
commit
d3eca68744
@ -240,7 +240,10 @@ namespace Qt {
|
||||
CustomizeWindowHint = 0x02000000,
|
||||
WindowStaysOnBottomHint = 0x04000000,
|
||||
WindowCloseButtonHint = 0x08000000,
|
||||
MacWindowToolBarButtonHint = 0x10000000,
|
||||
#if QT_DEPRECATED_SINCE(6, 9)
|
||||
MacWindowToolBarButtonHint Q_DECL_ENUMERATOR_DEPRECATED_X(
|
||||
"This flag has been a no-op since Qt 5") = 0x10000000,
|
||||
#endif
|
||||
BypassGraphicsProxyWidget = 0x20000000,
|
||||
NoDropShadowWindowHint = 0x40000000,
|
||||
WindowFullscreenButtonHint = 0x80000000
|
||||
|
@ -2302,8 +2302,7 @@
|
||||
\value WindowContextHelpButtonHint Adds a context help button to dialogs.
|
||||
On some platforms this implies Qt::WindowSystemMenuHint for it to work.
|
||||
|
||||
\value MacWindowToolBarButtonHint On \macos adds a tool bar button (i.e.,
|
||||
the oblong button that is on the top right of windows that have toolbars).
|
||||
\omitvalue MacWindowToolBarButtonHint
|
||||
|
||||
\value WindowFullscreenButtonHint On \macos adds a fullscreen button.
|
||||
|
||||
|
@ -79,7 +79,6 @@ void formatWindowFlags(QTextStream &str, Qt::WindowFlags flags)
|
||||
debugFlag(str, flags, Qt::NoDropShadowWindowHint)
|
||||
debugFlag(str, flags, Qt::WindowFullscreenButtonHint)
|
||||
debugFlag(str, flags, Qt::WindowStaysOnBottomHint)
|
||||
debugFlag(str, flags, Qt::MacWindowToolBarButtonHint)
|
||||
debugFlag(str, flags, Qt::BypassGraphicsProxyWidget)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user