| 1 | // Copyright (C) 2020 The Qt Company Ltd. | 
|---|
| 2 | // Copyright (C) 2020 Klaralvdalens Datakonsult AB, a KDAB Group company, [email protected], author Giuseppe D'Angelo <[email protected]> | 
|---|
| 3 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only | 
|---|
| 4 |  | 
|---|
| 5 | #ifndef QNAMESPACE_H | 
|---|
| 6 | #define QNAMESPACE_H | 
|---|
| 7 |  | 
|---|
| 8 | #if 0 | 
|---|
| 9 | #pragma qt_class(Qt) | 
|---|
| 10 | #endif | 
|---|
| 11 |  | 
|---|
| 12 | #include <QtCore/qglobal.h> | 
|---|
| 13 | #include <QtCore/qcompare.h> | 
|---|
| 14 | #include <QtCore/qtclasshelpermacros.h> | 
|---|
| 15 | #include <QtCore/qtmetamacros.h> | 
|---|
| 16 |  | 
|---|
| 17 | #if defined(__OBJC__) && !defined(__cplusplus) | 
|---|
| 18 | #  warning "File built in Objective-C mode (.m), but using Qt requires Objective-C++ (.mm)" | 
|---|
| 19 | #endif | 
|---|
| 20 |  | 
|---|
| 21 | QT_BEGIN_NAMESPACE | 
|---|
| 22 |  | 
|---|
| 23 | struct QMetaObject; | 
|---|
| 24 |  | 
|---|
| 25 | namespace Qt { | 
|---|
| 26 | Q_NAMESPACE_EXPORT(Q_CORE_EXPORT) | 
|---|
| 27 |  | 
|---|
| 28 | enum GlobalColor { | 
|---|
| 29 | color0, | 
|---|
| 30 | color1, | 
|---|
| 31 | black, | 
|---|
| 32 | white, | 
|---|
| 33 | darkGray, | 
|---|
| 34 | gray, | 
|---|
| 35 | lightGray, | 
|---|
| 36 | red, | 
|---|
| 37 | green, | 
|---|
| 38 | blue, | 
|---|
| 39 | cyan, | 
|---|
| 40 | magenta, | 
|---|
| 41 | yellow, | 
|---|
| 42 | darkRed, | 
|---|
| 43 | darkGreen, | 
|---|
| 44 | darkBlue, | 
|---|
| 45 | darkCyan, | 
|---|
| 46 | darkMagenta, | 
|---|
| 47 | darkYellow, | 
|---|
| 48 | transparent | 
|---|
| 49 | }; | 
|---|
| 50 |  | 
|---|
| 51 | enum class ColorScheme { | 
|---|
| 52 | Unknown, | 
|---|
| 53 | Light, | 
|---|
| 54 | Dark, | 
|---|
| 55 | }; | 
|---|
| 56 |  | 
|---|
| 57 | enum MouseButton { | 
|---|
| 58 | NoButton         = 0x00000000, | 
|---|
| 59 | LeftButton       = 0x00000001, | 
|---|
| 60 | RightButton      = 0x00000002, | 
|---|
| 61 | MiddleButton     = 0x00000004, | 
|---|
| 62 | BackButton       = 0x00000008, | 
|---|
| 63 | XButton1         = BackButton, | 
|---|
| 64 | = XButton1, | 
|---|
| 65 | ForwardButton    = 0x00000010, | 
|---|
| 66 | XButton2         = ForwardButton, | 
|---|
| 67 | = ForwardButton, | 
|---|
| 68 | TaskButton       = 0x00000020, | 
|---|
| 69 | = TaskButton, | 
|---|
| 70 | = 0x00000040, | 
|---|
| 71 | = 0x00000080, | 
|---|
| 72 | = 0x00000100, | 
|---|
| 73 | = 0x00000200, | 
|---|
| 74 | = 0x00000400, | 
|---|
| 75 | = 0x00000800, | 
|---|
| 76 | = 0x00001000, | 
|---|
| 77 | = 0x00002000, | 
|---|
| 78 | = 0x00004000, | 
|---|
| 79 | = 0x00008000, | 
|---|
| 80 | = 0x00010000, | 
|---|
| 81 | = 0x00020000, | 
|---|
| 82 | = 0x00040000, | 
|---|
| 83 | = 0x00080000, | 
|---|
| 84 | = 0x00100000, | 
|---|
| 85 | = 0x00200000, | 
|---|
| 86 | = 0x00400000, | 
|---|
| 87 | = 0x00800000, | 
|---|
| 88 | = 0x01000000, | 
|---|
| 89 | = 0x02000000, | 
|---|
| 90 | = 0x04000000, | 
|---|
| 91 | AllButtons       = 0x07ffffff, | 
|---|
| 92 | MaxMouseButton   = ExtraButton24, | 
|---|
| 93 | // 4 high-order bits remain available for future use (0x08000000 through 0x40000000). | 
|---|
| 94 | MouseButtonMask  = 0xffffffff | 
|---|
| 95 | }; | 
|---|
| 96 | Q_DECLARE_FLAGS(MouseButtons, MouseButton) | 
|---|
| 97 | Q_DECLARE_OPERATORS_FOR_FLAGS(MouseButtons) | 
|---|
| 98 |  | 
|---|
| 99 | enum Orientation { | 
|---|
| 100 | Horizontal = 0x1, | 
|---|
| 101 | Vertical = 0x2 | 
|---|
| 102 | }; | 
|---|
| 103 |  | 
|---|
| 104 | Q_DECLARE_FLAGS(Orientations, Orientation) | 
|---|
| 105 | Q_DECLARE_OPERATORS_FOR_FLAGS(Orientations) | 
|---|
| 106 |  | 
|---|
| 107 | enum FocusPolicy { | 
|---|
| 108 | NoFocus = 0, | 
|---|
| 109 | TabFocus = 0x1, | 
|---|
| 110 | ClickFocus = 0x2, | 
|---|
| 111 | StrongFocus = TabFocus | ClickFocus | 0x8, | 
|---|
| 112 | WheelFocus = StrongFocus | 0x4 | 
|---|
| 113 | }; | 
|---|
| 114 |  | 
|---|
| 115 | enum TabFocusBehavior { | 
|---|
| 116 | NoTabFocus           = 0x00, | 
|---|
| 117 | TabFocusTextControls = 0x01, | 
|---|
| 118 | TabFocusListControls = 0x02, | 
|---|
| 119 | TabFocusAllControls  = 0xff | 
|---|
| 120 | }; | 
|---|
| 121 |  | 
|---|
| 122 | enum SortOrder { | 
|---|
| 123 | AscendingOrder, | 
|---|
| 124 | DescendingOrder | 
|---|
| 125 | }; | 
|---|
| 126 |  | 
|---|
| 127 | enum SplitBehaviorFlags { | 
|---|
| 128 | KeepEmptyParts = 0, | 
|---|
| 129 | SkipEmptyParts = 0x1, | 
|---|
| 130 | }; | 
|---|
| 131 | Q_DECLARE_FLAGS(SplitBehavior, SplitBehaviorFlags) | 
|---|
| 132 | Q_DECLARE_OPERATORS_FOR_FLAGS(SplitBehavior) | 
|---|
| 133 |  | 
|---|
| 134 | enum TileRule { | 
|---|
| 135 | StretchTile, | 
|---|
| 136 | RepeatTile, | 
|---|
| 137 | RoundTile | 
|---|
| 138 | }; | 
|---|
| 139 |  | 
|---|
| 140 | // Text formatting flags for QPainter::drawText and QLabel. | 
|---|
| 141 | // The following two enums can be combined to one integer which | 
|---|
| 142 | // is passed as 'flags' to QPainter::drawText, QFontMetrics::boundingRect and qt_format_text. | 
|---|
| 143 |  | 
|---|
| 144 | enum AlignmentFlag { | 
|---|
| 145 | AlignLeft = 0x0001, | 
|---|
| 146 | AlignLeading = AlignLeft, | 
|---|
| 147 | AlignRight = 0x0002, | 
|---|
| 148 | AlignTrailing = AlignRight, | 
|---|
| 149 | AlignHCenter = 0x0004, | 
|---|
| 150 | AlignJustify = 0x0008, | 
|---|
| 151 | AlignAbsolute = 0x0010, | 
|---|
| 152 | AlignHorizontal_Mask = AlignLeft | AlignRight | AlignHCenter | AlignJustify | AlignAbsolute, | 
|---|
| 153 |  | 
|---|
| 154 | AlignTop = 0x0020, | 
|---|
| 155 | AlignBottom = 0x0040, | 
|---|
| 156 | AlignVCenter = 0x0080, | 
|---|
| 157 | AlignBaseline = 0x0100, | 
|---|
| 158 | // Note that 0x100 will clash with Qt::TextSingleLine = 0x100 due to what the comment above | 
|---|
| 159 | // this enum declaration states. However, since Qt::AlignBaseline is only used by layouts, | 
|---|
| 160 | // it doesn't make sense to pass Qt::AlignBaseline to QPainter::drawText(), so there | 
|---|
| 161 | // shouldn't really be any ambiguity between the two overlapping enum values. | 
|---|
| 162 | AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter | AlignBaseline, | 
|---|
| 163 |  | 
|---|
| 164 | AlignCenter = AlignVCenter | AlignHCenter | 
|---|
| 165 | }; | 
|---|
| 166 |  | 
|---|
| 167 | Q_DECLARE_FLAGS(Alignment, AlignmentFlag) | 
|---|
| 168 | Q_DECLARE_OPERATORS_FOR_FLAGS(Alignment) | 
|---|
| 169 |  | 
|---|
| 170 | enum TextFlag { | 
|---|
| 171 | TextSingleLine = 0x0100, | 
|---|
| 172 | TextDontClip = 0x0200, | 
|---|
| 173 | TextExpandTabs = 0x0400, | 
|---|
| 174 | TextShowMnemonic = 0x0800, | 
|---|
| 175 | TextWordWrap = 0x1000, | 
|---|
| 176 | TextWrapAnywhere = 0x2000, | 
|---|
| 177 | TextDontPrint = 0x4000, | 
|---|
| 178 | TextIncludeTrailingSpaces = 0x08000000, | 
|---|
| 179 | TextHideMnemonic = 0x8000, | 
|---|
| 180 | TextJustificationForced = 0x10000, | 
|---|
| 181 | TextForceLeftToRight = 0x20000, | 
|---|
| 182 | TextForceRightToLeft = 0x40000, | 
|---|
| 183 | // Ensures that the longest variant is always used when computing the | 
|---|
| 184 | // size of a multi-variant string. | 
|---|
| 185 | TextLongestVariant = 0x80000 | 
|---|
| 186 | }; | 
|---|
| 187 | Q_DECLARE_MIXED_ENUM_OPERATORS_SYMMETRIC(int, AlignmentFlag, TextFlag) | 
|---|
| 188 |  | 
|---|
| 189 | enum TextElideMode { | 
|---|
| 190 | ElideLeft, | 
|---|
| 191 | ElideRight, | 
|---|
| 192 | ElideMiddle, | 
|---|
| 193 | ElideNone | 
|---|
| 194 | }; | 
|---|
| 195 | Q_DECLARE_MIXED_ENUM_OPERATORS_SYMMETRIC(int, TextElideMode, TextFlag) | 
|---|
| 196 |  | 
|---|
| 197 | enum WhiteSpaceMode { | 
|---|
| 198 | WhiteSpaceNormal, | 
|---|
| 199 | WhiteSpacePre, | 
|---|
| 200 | WhiteSpaceNoWrap, | 
|---|
| 201 | WhiteSpaceModeUndefined = -1 | 
|---|
| 202 | }; | 
|---|
| 203 |  | 
|---|
| 204 | enum HitTestAccuracy { ExactHit, FuzzyHit }; | 
|---|
| 205 |  | 
|---|
| 206 | enum WindowType { | 
|---|
| 207 | Widget = 0x00000000, | 
|---|
| 208 | Window = 0x00000001, | 
|---|
| 209 | Dialog = 0x00000002 | Window, | 
|---|
| 210 | Sheet = 0x00000004 | Window, | 
|---|
| 211 | Drawer = Sheet | Dialog, | 
|---|
| 212 | = 0x00000008 | Window, | 
|---|
| 213 | Tool = Popup | Dialog, | 
|---|
| 214 | ToolTip = Popup | Sheet, | 
|---|
| 215 | SplashScreen = ToolTip | Dialog, | 
|---|
| 216 | Desktop = 0x00000010 | Window, | 
|---|
| 217 | SubWindow = 0x00000012, // Note QTBUG-115729 before using | 
|---|
| 218 | ForeignWindow = 0x00000020 | Window, | 
|---|
| 219 | CoverWindow = 0x00000040 | Window, | 
|---|
| 220 |  | 
|---|
| 221 | WindowType_Mask = 0x000000ff, | 
|---|
| 222 | MSWindowsFixedSizeDialogHint = 0x00000100, | 
|---|
| 223 | MSWindowsOwnDC = 0x00000200, | 
|---|
| 224 | BypassWindowManagerHint = 0x00000400, | 
|---|
| 225 | X11BypassWindowManagerHint = BypassWindowManagerHint, | 
|---|
| 226 | FramelessWindowHint = 0x00000800, | 
|---|
| 227 | WindowTitleHint = 0x00001000, | 
|---|
| 228 | = 0x00002000, | 
|---|
| 229 | WindowMinimizeButtonHint = 0x00004000, | 
|---|
| 230 | WindowMaximizeButtonHint = 0x00008000, | 
|---|
| 231 | WindowMinMaxButtonsHint = WindowMinimizeButtonHint | WindowMaximizeButtonHint, | 
|---|
| 232 | WindowContextHelpButtonHint = 0x00010000, | 
|---|
| 233 | WindowShadeButtonHint = 0x00020000, | 
|---|
| 234 | WindowStaysOnTopHint = 0x00040000, | 
|---|
| 235 | WindowTransparentForInput = 0x00080000, | 
|---|
| 236 | WindowOverridesSystemGestures = 0x00100000, | 
|---|
| 237 | WindowDoesNotAcceptFocus = 0x00200000, | 
|---|
| 238 | MaximizeUsingFullscreenGeometryHint = 0x00400000, | 
|---|
| 239 |  | 
|---|
| 240 | CustomizeWindowHint = 0x02000000, | 
|---|
| 241 | WindowStaysOnBottomHint = 0x04000000, | 
|---|
| 242 | WindowCloseButtonHint = 0x08000000, | 
|---|
| 243 | MacWindowToolBarButtonHint = 0x10000000, | 
|---|
| 244 | BypassGraphicsProxyWidget = 0x20000000, | 
|---|
| 245 | NoDropShadowWindowHint = 0x40000000, | 
|---|
| 246 | WindowFullscreenButtonHint = 0x80000000 | 
|---|
| 247 | }; | 
|---|
| 248 |  | 
|---|
| 249 | Q_DECLARE_FLAGS(WindowFlags, WindowType) | 
|---|
| 250 | Q_DECLARE_OPERATORS_FOR_FLAGS(WindowFlags) | 
|---|
| 251 |  | 
|---|
| 252 | enum WindowState { | 
|---|
| 253 | WindowNoState    = 0x00000000, | 
|---|
| 254 | WindowMinimized  = 0x00000001, | 
|---|
| 255 | WindowMaximized  = 0x00000002, | 
|---|
| 256 | WindowFullScreen = 0x00000004, | 
|---|
| 257 | WindowActive     = 0x00000008 | 
|---|
| 258 | }; | 
|---|
| 259 |  | 
|---|
| 260 | Q_DECLARE_FLAGS(WindowStates, WindowState) | 
|---|
| 261 | Q_DECLARE_OPERATORS_FOR_FLAGS(WindowStates) | 
|---|
| 262 |  | 
|---|
| 263 | enum ApplicationState { | 
|---|
| 264 | ApplicationSuspended    = 0x00000000, | 
|---|
| 265 | ApplicationHidden       = 0x00000001, | 
|---|
| 266 | ApplicationInactive     = 0x00000002, | 
|---|
| 267 | ApplicationActive       = 0x00000004 | 
|---|
| 268 | }; | 
|---|
| 269 |  | 
|---|
| 270 | Q_DECLARE_FLAGS(ApplicationStates, ApplicationState) | 
|---|
| 271 |  | 
|---|
| 272 | enum ScreenOrientation { | 
|---|
| 273 | PrimaryOrientation           = 0x00000000, | 
|---|
| 274 | PortraitOrientation          = 0x00000001, | 
|---|
| 275 | LandscapeOrientation         = 0x00000002, | 
|---|
| 276 | InvertedPortraitOrientation  = 0x00000004, | 
|---|
| 277 | InvertedLandscapeOrientation = 0x00000008 | 
|---|
| 278 | }; | 
|---|
| 279 |  | 
|---|
| 280 | Q_DECLARE_FLAGS(ScreenOrientations, ScreenOrientation) | 
|---|
| 281 | Q_DECLARE_OPERATORS_FOR_FLAGS(ScreenOrientations) | 
|---|
| 282 |  | 
|---|
| 283 | enum WidgetAttribute { | 
|---|
| 284 | WA_Disabled = 0, | 
|---|
| 285 | WA_UnderMouse = 1, | 
|---|
| 286 | WA_MouseTracking = 2, | 
|---|
| 287 | // Formerly, 3 was WA_ContentsPropagated. | 
|---|
| 288 | WA_OpaquePaintEvent = 4, | 
|---|
| 289 | WA_StaticContents = 5, | 
|---|
| 290 | WA_LaidOut = 7, | 
|---|
| 291 | WA_PaintOnScreen = 8, | 
|---|
| 292 | WA_NoSystemBackground = 9, | 
|---|
| 293 | WA_UpdatesDisabled = 10, | 
|---|
| 294 | WA_Mapped = 11, | 
|---|
| 295 | // Formerly, 12 was WA_MacNoClickThrough. | 
|---|
| 296 | WA_InputMethodEnabled = 14, | 
|---|
| 297 | WA_WState_Visible = 15, | 
|---|
| 298 | WA_WState_Hidden = 16, | 
|---|
| 299 |  | 
|---|
| 300 | WA_ForceDisabled = 32, | 
|---|
| 301 | WA_KeyCompression = 33, | 
|---|
| 302 | WA_PendingMoveEvent = 34, | 
|---|
| 303 | WA_PendingResizeEvent = 35, | 
|---|
| 304 | WA_SetPalette = 36, | 
|---|
| 305 | WA_SetFont = 37, | 
|---|
| 306 | WA_SetCursor = 38, | 
|---|
| 307 | WA_NoChildEventsFromChildren = 39, | 
|---|
| 308 | WA_WindowModified = 41, | 
|---|
| 309 | WA_Resized = 42, | 
|---|
| 310 | WA_Moved = 43, | 
|---|
| 311 | WA_PendingUpdate = 44, | 
|---|
| 312 | WA_InvalidSize = 45, | 
|---|
| 313 | // Formerly 46 was WA_MacBrushedMetal and WA_MacMetalStyle. | 
|---|
| 314 | WA_CustomWhatsThis = 47, | 
|---|
| 315 | WA_LayoutOnEntireRect = 48, | 
|---|
| 316 | WA_OutsideWSRange = 49, | 
|---|
| 317 | WA_GrabbedShortcut = 50, | 
|---|
| 318 | WA_TransparentForMouseEvents = 51, | 
|---|
| 319 | WA_PaintUnclipped = 52, | 
|---|
| 320 | WA_SetWindowIcon = 53, | 
|---|
| 321 | WA_NoMouseReplay = 54, | 
|---|
| 322 | WA_DeleteOnClose = 55, | 
|---|
| 323 | WA_RightToLeft = 56, | 
|---|
| 324 | WA_SetLayoutDirection = 57, | 
|---|
| 325 | WA_NoChildEventsForParent = 58, | 
|---|
| 326 | WA_ForceUpdatesDisabled = 59, | 
|---|
| 327 |  | 
|---|
| 328 | WA_WState_Created = 60, | 
|---|
| 329 | WA_WState_CompressKeys = 61, | 
|---|
| 330 | WA_WState_InPaintEvent = 62, | 
|---|
| 331 | WA_WState_Reparented = 63, | 
|---|
| 332 | WA_WState_ConfigPending = 64, | 
|---|
| 333 | WA_WState_Polished = 66, | 
|---|
| 334 | // Formerly, 67 was WA_WState_DND. | 
|---|
| 335 | WA_WState_OwnSizePolicy = 68, | 
|---|
| 336 | WA_WState_ExplicitShowHide = 69, | 
|---|
| 337 |  | 
|---|
| 338 | WA_ShowModal = 70, // ## deprecated since since 4.5.1 but still in use :-( | 
|---|
| 339 | WA_MouseNoMask = 71, | 
|---|
| 340 | WA_NoMousePropagation = 73, // for now, might go away. | 
|---|
| 341 | WA_Hover = 74, | 
|---|
| 342 | WA_InputMethodTransparent = 75, // Don't reset IM when user clicks on this (for virtual keyboards on embedded) | 
|---|
| 343 | WA_QuitOnClose = 76, | 
|---|
| 344 |  | 
|---|
| 345 | WA_KeyboardFocusChange = 77, | 
|---|
| 346 |  | 
|---|
| 347 | WA_AcceptDrops = 78, | 
|---|
| 348 | WA_DropSiteRegistered = 79, // internal | 
|---|
| 349 |  | 
|---|
| 350 | WA_WindowPropagation = 80, | 
|---|
| 351 |  | 
|---|
| 352 | WA_NoX11EventCompression = 81, | 
|---|
| 353 | WA_TintedBackground = 82, | 
|---|
| 354 | WA_X11OpenGLOverlay = 83, | 
|---|
| 355 | WA_AlwaysShowToolTips = 84, | 
|---|
| 356 | WA_MacOpaqueSizeGrip = 85, | 
|---|
| 357 | WA_SetStyle = 86, | 
|---|
| 358 |  | 
|---|
| 359 | WA_SetLocale = 87, | 
|---|
| 360 | WA_MacShowFocusRect = 88, | 
|---|
| 361 |  | 
|---|
| 362 | WA_MacNormalSize = 89,  // Mac only | 
|---|
| 363 | WA_MacSmallSize = 90,   // Mac only | 
|---|
| 364 | WA_MacMiniSize = 91,    // Mac only | 
|---|
| 365 |  | 
|---|
| 366 | WA_LayoutUsesWidgetRect = 92, | 
|---|
| 367 | WA_StyledBackground = 93, // internal | 
|---|
| 368 | // Formerly, 94 was WA_MSWindowsUseDirect3D. | 
|---|
| 369 | WA_CanHostQMdiSubWindowTitleBar = 95, // Internal | 
|---|
| 370 |  | 
|---|
| 371 | WA_MacAlwaysShowToolWindow = 96, // Mac only | 
|---|
| 372 |  | 
|---|
| 373 | WA_StyleSheet = 97, // internal | 
|---|
| 374 |  | 
|---|
| 375 | WA_ShowWithoutActivating = 98, | 
|---|
| 376 |  | 
|---|
| 377 | WA_X11BypassTransientForHint = 99, | 
|---|
| 378 |  | 
|---|
| 379 | WA_NativeWindow = 100, | 
|---|
| 380 | WA_DontCreateNativeAncestors = 101, | 
|---|
| 381 |  | 
|---|
| 382 | // Formerly WA_MacVariableSize = 102,    // Mac only | 
|---|
| 383 |  | 
|---|
| 384 | WA_DontShowOnScreen = 103, | 
|---|
| 385 |  | 
|---|
| 386 | // window types from http://standards.freedesktop.org/wm-spec/ | 
|---|
| 387 | WA_X11NetWmWindowTypeDesktop = 104, | 
|---|
| 388 | WA_X11NetWmWindowTypeDock = 105, | 
|---|
| 389 | WA_X11NetWmWindowTypeToolBar = 106, | 
|---|
| 390 | = 107, | 
|---|
| 391 | WA_X11NetWmWindowTypeUtility = 108, | 
|---|
| 392 | WA_X11NetWmWindowTypeSplash = 109, | 
|---|
| 393 | WA_X11NetWmWindowTypeDialog = 110, | 
|---|
| 394 | = 111, | 
|---|
| 395 | = 112, | 
|---|
| 396 | WA_X11NetWmWindowTypeToolTip = 113, | 
|---|
| 397 | WA_X11NetWmWindowTypeNotification = 114, | 
|---|
| 398 | WA_X11NetWmWindowTypeCombo = 115, | 
|---|
| 399 | WA_X11NetWmWindowTypeDND = 116, | 
|---|
| 400 | // Formerly, 117 was WA_MacFrameworkScaled. | 
|---|
| 401 | WA_SetWindowModality = 118, | 
|---|
| 402 | WA_WState_WindowOpacitySet = 119, // internal | 
|---|
| 403 | WA_TranslucentBackground = 120, | 
|---|
| 404 |  | 
|---|
| 405 | WA_AcceptTouchEvents = 121, | 
|---|
| 406 | WA_WState_AcceptedTouchBeginEvent = 122, | 
|---|
| 407 | WA_TouchPadAcceptSingleTouchEvents = 123, | 
|---|
| 408 |  | 
|---|
| 409 | WA_X11DoNotAcceptFocus = 126, | 
|---|
| 410 | // Formerly, 127 was WA_MacNoShadow | 
|---|
| 411 |  | 
|---|
| 412 | WA_AlwaysStackOnTop = 128, | 
|---|
| 413 |  | 
|---|
| 414 | WA_TabletTracking = 129, | 
|---|
| 415 |  | 
|---|
| 416 | WA_ContentsMarginsRespectsSafeArea = 130, | 
|---|
| 417 |  | 
|---|
| 418 | WA_StyleSheetTarget = 131, | 
|---|
| 419 |  | 
|---|
| 420 | // Add new attributes before this line | 
|---|
| 421 | WA_AttributeCount | 
|---|
| 422 | }; | 
|---|
| 423 |  | 
|---|
| 424 | enum ApplicationAttribute | 
|---|
| 425 | { | 
|---|
| 426 | // AA_ImmediateWidgetCreation = 0, | 
|---|
| 427 | AA_QtQuickUseDefaultSizePolicy = 1, | 
|---|
| 428 | = 2, | 
|---|
| 429 | AA_NativeWindows = 3, | 
|---|
| 430 | AA_DontCreateNativeWidgetSiblings = 4, | 
|---|
| 431 | AA_PluginApplication = 5, | 
|---|
| 432 | = 6, | 
|---|
| 433 | AA_MacDontSwapCtrlAndMeta = 7, | 
|---|
| 434 | AA_Use96Dpi = 8, | 
|---|
| 435 | AA_DisableNativeVirtualKeyboard = 9, | 
|---|
| 436 | = 10, | 
|---|
| 437 | AA_SynthesizeTouchForUnhandledMouseEvents = 11, | 
|---|
| 438 | AA_SynthesizeMouseForUnhandledTouchEvents = 12, | 
|---|
| 439 | #if QT_DEPRECATED_SINCE(6, 0) | 
|---|
| 440 | AA_UseHighDpiPixmaps Q_DECL_ENUMERATOR_DEPRECATED_X( | 
|---|
| 441 | "High-DPI pixmaps are always enabled. "\ | 
|---|
| 442 | "This attribute no longer has any effect.") = 13, | 
|---|
| 443 | #endif | 
|---|
| 444 | AA_ForceRasterWidgets = 14, | 
|---|
| 445 | AA_UseDesktopOpenGL = 15, | 
|---|
| 446 | AA_UseOpenGLES = 16, | 
|---|
| 447 | AA_UseSoftwareOpenGL = 17, | 
|---|
| 448 | AA_ShareOpenGLContexts = 18, | 
|---|
| 449 | AA_SetPalette = 19, | 
|---|
| 450 | #if QT_DEPRECATED_SINCE(6, 0) | 
|---|
| 451 | AA_EnableHighDpiScaling Q_DECL_ENUMERATOR_DEPRECATED_X( | 
|---|
| 452 | "High-DPI scaling is always enabled. "\ | 
|---|
| 453 | "This attribute no longer has any effect.") = 20, | 
|---|
| 454 | AA_DisableHighDpiScaling Q_DECL_ENUMERATOR_DEPRECATED_X( | 
|---|
| 455 | "High-DPI scaling is always enabled. "\ | 
|---|
| 456 | "This attribute no longer has any effect.") = 21, | 
|---|
| 457 | #endif | 
|---|
| 458 | AA_UseStyleSheetPropagationInWidgetStyles = 22, | 
|---|
| 459 | AA_DontUseNativeDialogs = 23, | 
|---|
| 460 | AA_SynthesizeMouseForUnhandledTabletEvents = 24, | 
|---|
| 461 | AA_CompressHighFrequencyEvents = 25, | 
|---|
| 462 | AA_DontCheckOpenGLContextThreadAffinity = 26, | 
|---|
| 463 | AA_DisableShaderDiskCache = 27, | 
|---|
| 464 | = 28, | 
|---|
| 465 | AA_CompressTabletEvents = 29, | 
|---|
| 466 | // AA_DisableWindowContextHelpButton = 30, (in Qt 5) | 
|---|
| 467 | AA_DisableSessionManager = 31, | 
|---|
| 468 |  | 
|---|
| 469 | // Add new attributes before this line | 
|---|
| 470 | AA_AttributeCount | 
|---|
| 471 | }; | 
|---|
| 472 |  | 
|---|
| 473 |  | 
|---|
| 474 | // Image conversion flags.  The unusual ordering is caused by | 
|---|
| 475 | // compatibility and default requirements. | 
|---|
| 476 |  | 
|---|
| 477 | enum ImageConversionFlag { | 
|---|
| 478 | ColorMode_Mask          = 0x00000003, | 
|---|
| 479 | AutoColor               = 0x00000000, | 
|---|
| 480 | ColorOnly               = 0x00000003, | 
|---|
| 481 | MonoOnly                = 0x00000002, | 
|---|
| 482 | // Reserved             = 0x00000001, | 
|---|
| 483 |  | 
|---|
| 484 | AlphaDither_Mask        = 0x0000000c, | 
|---|
| 485 | ThresholdAlphaDither    = 0x00000000, | 
|---|
| 486 | OrderedAlphaDither      = 0x00000004, | 
|---|
| 487 | DiffuseAlphaDither      = 0x00000008, | 
|---|
| 488 | NoAlpha                 = 0x0000000c, // Not supported | 
|---|
| 489 |  | 
|---|
| 490 | Dither_Mask             = 0x00000030, | 
|---|
| 491 | DiffuseDither           = 0x00000000, | 
|---|
| 492 | OrderedDither           = 0x00000010, | 
|---|
| 493 | ThresholdDither         = 0x00000020, | 
|---|
| 494 | // ReservedDither       = 0x00000030, | 
|---|
| 495 |  | 
|---|
| 496 | DitherMode_Mask         = 0x000000c0, | 
|---|
| 497 | AutoDither              = 0x00000000, | 
|---|
| 498 | PreferDither            = 0x00000040, | 
|---|
| 499 | AvoidDither             = 0x00000080, | 
|---|
| 500 |  | 
|---|
| 501 | NoOpaqueDetection       = 0x00000100, | 
|---|
| 502 | NoFormatConversion      = 0x00000200 | 
|---|
| 503 | }; | 
|---|
| 504 | Q_DECLARE_FLAGS(ImageConversionFlags, ImageConversionFlag) | 
|---|
| 505 | Q_DECLARE_OPERATORS_FOR_FLAGS(ImageConversionFlags) | 
|---|
| 506 |  | 
|---|
| 507 | enum BGMode { | 
|---|
| 508 | TransparentMode, | 
|---|
| 509 | OpaqueMode | 
|---|
| 510 | }; | 
|---|
| 511 |  | 
|---|
| 512 | enum Key { | 
|---|
| 513 | // Unicode Basic Latin block (0x00-0x7f) | 
|---|
| 514 | Key_Space = 0x20, | 
|---|
| 515 | Key_Any = Key_Space, | 
|---|
| 516 | Key_Exclam = 0x21, | 
|---|
| 517 | Key_QuoteDbl = 0x22, | 
|---|
| 518 | Key_NumberSign = 0x23, | 
|---|
| 519 | Key_Dollar = 0x24, | 
|---|
| 520 | Key_Percent = 0x25, | 
|---|
| 521 | Key_Ampersand = 0x26, | 
|---|
| 522 | Key_Apostrophe = 0x27, | 
|---|
| 523 | Key_ParenLeft = 0x28, | 
|---|
| 524 | Key_ParenRight = 0x29, | 
|---|
| 525 | Key_Asterisk = 0x2a, | 
|---|
| 526 | Key_Plus = 0x2b, | 
|---|
| 527 | Key_Comma = 0x2c, | 
|---|
| 528 | Key_Minus = 0x2d, | 
|---|
| 529 | Key_Period = 0x2e, | 
|---|
| 530 | Key_Slash = 0x2f, | 
|---|
| 531 | Key_0 = 0x30, | 
|---|
| 532 | Key_1 = 0x31, | 
|---|
| 533 | Key_2 = 0x32, | 
|---|
| 534 | Key_3 = 0x33, | 
|---|
| 535 | Key_4 = 0x34, | 
|---|
| 536 | Key_5 = 0x35, | 
|---|
| 537 | Key_6 = 0x36, | 
|---|
| 538 | Key_7 = 0x37, | 
|---|
| 539 | Key_8 = 0x38, | 
|---|
| 540 | Key_9 = 0x39, | 
|---|
| 541 | Key_Colon = 0x3a, | 
|---|
| 542 | Key_Semicolon = 0x3b, | 
|---|
| 543 | Key_Less = 0x3c, | 
|---|
| 544 | Key_Equal = 0x3d, | 
|---|
| 545 | Key_Greater = 0x3e, | 
|---|
| 546 | Key_Question = 0x3f, | 
|---|
| 547 | Key_At = 0x40, | 
|---|
| 548 | Key_A = 0x41, | 
|---|
| 549 | Key_B = 0x42, | 
|---|
| 550 | Key_C = 0x43, | 
|---|
| 551 | Key_D = 0x44, | 
|---|
| 552 | Key_E = 0x45, | 
|---|
| 553 | Key_F = 0x46, | 
|---|
| 554 | Key_G = 0x47, | 
|---|
| 555 | Key_H = 0x48, | 
|---|
| 556 | Key_I = 0x49, | 
|---|
| 557 | Key_J = 0x4a, | 
|---|
| 558 | Key_K = 0x4b, | 
|---|
| 559 | Key_L = 0x4c, | 
|---|
| 560 | Key_M = 0x4d, | 
|---|
| 561 | Key_N = 0x4e, | 
|---|
| 562 | Key_O = 0x4f, | 
|---|
| 563 | Key_P = 0x50, | 
|---|
| 564 | Key_Q = 0x51, | 
|---|
| 565 | Key_R = 0x52, | 
|---|
| 566 | Key_S = 0x53, | 
|---|
| 567 | Key_T = 0x54, | 
|---|
| 568 | Key_U = 0x55, | 
|---|
| 569 | Key_V = 0x56, | 
|---|
| 570 | Key_W = 0x57, | 
|---|
| 571 | Key_X = 0x58, | 
|---|
| 572 | Key_Y = 0x59, | 
|---|
| 573 | Key_Z = 0x5a, | 
|---|
| 574 | Key_BracketLeft = 0x5b, | 
|---|
| 575 | Key_Backslash = 0x5c, | 
|---|
| 576 | Key_BracketRight = 0x5d, | 
|---|
| 577 | Key_AsciiCircum = 0x5e, | 
|---|
| 578 | Key_Underscore = 0x5f, | 
|---|
| 579 | Key_QuoteLeft = 0x60, | 
|---|
| 580 | Key_BraceLeft = 0x7b, | 
|---|
| 581 | Key_Bar = 0x7c, | 
|---|
| 582 | Key_BraceRight = 0x7d, | 
|---|
| 583 | Key_AsciiTilde = 0x7e, | 
|---|
| 584 |  | 
|---|
| 585 | // Unicode Latin-1 Supplement block (0x80-0xff) | 
|---|
| 586 | Key_nobreakspace = 0x0a0, | 
|---|
| 587 | Key_exclamdown = 0x0a1, | 
|---|
| 588 | Key_cent = 0x0a2, | 
|---|
| 589 | Key_sterling = 0x0a3, | 
|---|
| 590 | Key_currency = 0x0a4, | 
|---|
| 591 | Key_yen = 0x0a5, | 
|---|
| 592 | Key_brokenbar = 0x0a6, | 
|---|
| 593 | Key_section = 0x0a7, | 
|---|
| 594 | Key_diaeresis = 0x0a8, | 
|---|
| 595 | Key_copyright = 0x0a9, | 
|---|
| 596 | Key_ordfeminine = 0x0aa, | 
|---|
| 597 | Key_guillemotleft = 0x0ab,        // left angle quotation mark | 
|---|
| 598 | Key_notsign = 0x0ac, | 
|---|
| 599 | Key_hyphen = 0x0ad, | 
|---|
| 600 | Key_registered = 0x0ae, | 
|---|
| 601 | Key_macron = 0x0af, | 
|---|
| 602 | Key_degree = 0x0b0, | 
|---|
| 603 | Key_plusminus = 0x0b1, | 
|---|
| 604 | Key_twosuperior = 0x0b2, | 
|---|
| 605 | Key_threesuperior = 0x0b3, | 
|---|
| 606 | Key_acute = 0x0b4, | 
|---|
| 607 | Key_micro = 0x0b5, | 
|---|
| 608 | #if QT_DEPRECATED_SINCE(6, 11) | 
|---|
| 609 | Key_mu Q_DECL_ENUMERATOR_DEPRECATED_X( "This key was misnamed, use Key_micro instead") | 
|---|
| 610 | = Key_micro, | 
|---|
| 611 | #endif | 
|---|
| 612 | Key_paragraph = 0x0b6, | 
|---|
| 613 | Key_periodcentered = 0x0b7, | 
|---|
| 614 | Key_cedilla = 0x0b8, | 
|---|
| 615 | Key_onesuperior = 0x0b9, | 
|---|
| 616 | Key_masculine = 0x0ba, | 
|---|
| 617 | Key_guillemotright = 0x0bb,        // right angle quotation mark | 
|---|
| 618 | Key_onequarter = 0x0bc, | 
|---|
| 619 | Key_onehalf = 0x0bd, | 
|---|
| 620 | Key_threequarters = 0x0be, | 
|---|
| 621 | Key_questiondown = 0x0bf, | 
|---|
| 622 | Key_Agrave = 0x0c0, | 
|---|
| 623 | Key_Aacute = 0x0c1, | 
|---|
| 624 | Key_Acircumflex = 0x0c2, | 
|---|
| 625 | Key_Atilde = 0x0c3, | 
|---|
| 626 | Key_Adiaeresis = 0x0c4, | 
|---|
| 627 | Key_Aring = 0x0c5, | 
|---|
| 628 | Key_AE = 0x0c6, | 
|---|
| 629 | Key_Ccedilla = 0x0c7, | 
|---|
| 630 | Key_Egrave = 0x0c8, | 
|---|
| 631 | Key_Eacute = 0x0c9, | 
|---|
| 632 | Key_Ecircumflex = 0x0ca, | 
|---|
| 633 | Key_Ediaeresis = 0x0cb, | 
|---|
| 634 | Key_Igrave = 0x0cc, | 
|---|
| 635 | Key_Iacute = 0x0cd, | 
|---|
| 636 | Key_Icircumflex = 0x0ce, | 
|---|
| 637 | Key_Idiaeresis = 0x0cf, | 
|---|
| 638 | Key_ETH = 0x0d0, | 
|---|
| 639 | Key_Ntilde = 0x0d1, | 
|---|
| 640 | Key_Ograve = 0x0d2, | 
|---|
| 641 | Key_Oacute = 0x0d3, | 
|---|
| 642 | Key_Ocircumflex = 0x0d4, | 
|---|
| 643 | Key_Otilde = 0x0d5, | 
|---|
| 644 | Key_Odiaeresis = 0x0d6, | 
|---|
| 645 | Key_multiply = 0x0d7, | 
|---|
| 646 | Key_Ooblique = 0x0d8, | 
|---|
| 647 | Key_Ugrave = 0x0d9, | 
|---|
| 648 | Key_Uacute = 0x0da, | 
|---|
| 649 | Key_Ucircumflex = 0x0db, | 
|---|
| 650 | Key_Udiaeresis = 0x0dc, | 
|---|
| 651 | Key_Yacute = 0x0dd, | 
|---|
| 652 | Key_THORN = 0x0de, | 
|---|
| 653 | Key_ssharp = 0x0df, | 
|---|
| 654 | Key_division = 0x0f7, | 
|---|
| 655 | Key_ydiaeresis = 0x0ff, | 
|---|
| 656 |  | 
|---|
| 657 | // The rest of the Unicode values are skipped here, | 
|---|
| 658 | // so that we can represent them along with Qt::Keys | 
|---|
| 659 | // in the same data type. The maximum Unicode value | 
|---|
| 660 | // is 0x0010ffff, so we start our custom keys at | 
|---|
| 661 | // 0x01000000 to not clash with the Unicode values, | 
|---|
| 662 | // but still give plenty of room to grow. | 
|---|
| 663 |  | 
|---|
| 664 | Key_Escape = 0x01000000,                // misc keys | 
|---|
| 665 | Key_Tab = 0x01000001, | 
|---|
| 666 | Key_Backtab = 0x01000002, | 
|---|
| 667 | Key_Backspace = 0x01000003, | 
|---|
| 668 | Key_Return = 0x01000004, | 
|---|
| 669 | Key_Enter = 0x01000005, | 
|---|
| 670 | Key_Insert = 0x01000006, | 
|---|
| 671 | Key_Delete = 0x01000007, | 
|---|
| 672 | Key_Pause = 0x01000008, | 
|---|
| 673 | Key_Print = 0x01000009,               // print screen | 
|---|
| 674 | Key_SysReq = 0x0100000a, | 
|---|
| 675 | Key_Clear = 0x0100000b, | 
|---|
| 676 | Key_Home = 0x01000010,                // cursor movement | 
|---|
| 677 | Key_End = 0x01000011, | 
|---|
| 678 | Key_Left = 0x01000012, | 
|---|
| 679 | Key_Up = 0x01000013, | 
|---|
| 680 | Key_Right = 0x01000014, | 
|---|
| 681 | Key_Down = 0x01000015, | 
|---|
| 682 | Key_PageUp = 0x01000016, | 
|---|
| 683 | Key_PageDown = 0x01000017, | 
|---|
| 684 | Key_Shift = 0x01000020,                // modifiers | 
|---|
| 685 | Key_Control = 0x01000021, | 
|---|
| 686 | Key_Meta = 0x01000022, | 
|---|
| 687 | Key_Alt = 0x01000023, | 
|---|
| 688 | Key_CapsLock = 0x01000024, | 
|---|
| 689 | Key_NumLock = 0x01000025, | 
|---|
| 690 | Key_ScrollLock = 0x01000026, | 
|---|
| 691 | Key_F1 = 0x01000030,                // function keys | 
|---|
| 692 | Key_F2 = 0x01000031, | 
|---|
| 693 | Key_F3 = 0x01000032, | 
|---|
| 694 | Key_F4 = 0x01000033, | 
|---|
| 695 | Key_F5 = 0x01000034, | 
|---|
| 696 | Key_F6 = 0x01000035, | 
|---|
| 697 | Key_F7 = 0x01000036, | 
|---|
| 698 | Key_F8 = 0x01000037, | 
|---|
| 699 | Key_F9 = 0x01000038, | 
|---|
| 700 | Key_F10 = 0x01000039, | 
|---|
| 701 | Key_F11 = 0x0100003a, | 
|---|
| 702 | Key_F12 = 0x0100003b, | 
|---|
| 703 | Key_F13 = 0x0100003c, | 
|---|
| 704 | Key_F14 = 0x0100003d, | 
|---|
| 705 | Key_F15 = 0x0100003e, | 
|---|
| 706 | Key_F16 = 0x0100003f, | 
|---|
| 707 | Key_F17 = 0x01000040, | 
|---|
| 708 | Key_F18 = 0x01000041, | 
|---|
| 709 | Key_F19 = 0x01000042, | 
|---|
| 710 | Key_F20 = 0x01000043, | 
|---|
| 711 | Key_F21 = 0x01000044, | 
|---|
| 712 | Key_F22 = 0x01000045, | 
|---|
| 713 | Key_F23 = 0x01000046, | 
|---|
| 714 | Key_F24 = 0x01000047, | 
|---|
| 715 | Key_F25 = 0x01000048,                // F25 .. F35 only on X11 | 
|---|
| 716 | Key_F26 = 0x01000049, | 
|---|
| 717 | Key_F27 = 0x0100004a, | 
|---|
| 718 | Key_F28 = 0x0100004b, | 
|---|
| 719 | Key_F29 = 0x0100004c, | 
|---|
| 720 | Key_F30 = 0x0100004d, | 
|---|
| 721 | Key_F31 = 0x0100004e, | 
|---|
| 722 | Key_F32 = 0x0100004f, | 
|---|
| 723 | Key_F33 = 0x01000050, | 
|---|
| 724 | Key_F34 = 0x01000051, | 
|---|
| 725 | Key_F35 = 0x01000052, | 
|---|
| 726 | Key_Super_L = 0x01000053,                 // extra keys | 
|---|
| 727 | Key_Super_R = 0x01000054, | 
|---|
| 728 | = 0x01000055, | 
|---|
| 729 | Key_Hyper_L = 0x01000056, | 
|---|
| 730 | Key_Hyper_R = 0x01000057, | 
|---|
| 731 | Key_Help = 0x01000058, | 
|---|
| 732 | Key_Direction_L = 0x01000059, | 
|---|
| 733 | Key_Direction_R = 0x01000060, | 
|---|
| 734 |  | 
|---|
| 735 | // International input method support (X keycode - 0xEE00, the | 
|---|
| 736 | // definition follows Qt/Embedded 2.3.7) Only interesting if | 
|---|
| 737 | // you are writing your own input method | 
|---|
| 738 |  | 
|---|
| 739 | // International & multi-key character composition | 
|---|
| 740 | Key_AltGr               = 0x01001103, | 
|---|
| 741 | Key_Multi_key           = 0x01001120,  // Multi-key character compose | 
|---|
| 742 | Key_Codeinput           = 0x01001137, | 
|---|
| 743 | Key_SingleCandidate     = 0x0100113c, | 
|---|
| 744 | Key_MultipleCandidate   = 0x0100113d, | 
|---|
| 745 | Key_PreviousCandidate   = 0x0100113e, | 
|---|
| 746 |  | 
|---|
| 747 | // Misc Functions | 
|---|
| 748 | Key_Mode_switch         = 0x0100117e,  // Character set switch | 
|---|
| 749 | //Key_script_switch       = 0x0100117e,  // Alias for mode_switch | 
|---|
| 750 |  | 
|---|
| 751 | // Japanese keyboard support | 
|---|
| 752 | Key_Kanji               = 0x01001121,  // Kanji, Kanji convert | 
|---|
| 753 | Key_Muhenkan            = 0x01001122,  // Cancel Conversion | 
|---|
| 754 | //Key_Henkan_Mode         = 0x01001123,  // Start/Stop Conversion | 
|---|
| 755 | Key_Henkan              = 0x01001123,  // Alias for Henkan_Mode | 
|---|
| 756 | Key_Romaji              = 0x01001124,  // to Romaji | 
|---|
| 757 | Key_Hiragana            = 0x01001125,  // to Hiragana | 
|---|
| 758 | Key_Katakana            = 0x01001126,  // to Katakana | 
|---|
| 759 | Key_Hiragana_Katakana   = 0x01001127,  // Hiragana/Katakana toggle | 
|---|
| 760 | Key_Zenkaku             = 0x01001128,  // to Zenkaku | 
|---|
| 761 | Key_Hankaku             = 0x01001129,  // to Hankaku | 
|---|
| 762 | Key_Zenkaku_Hankaku     = 0x0100112a,  // Zenkaku/Hankaku toggle | 
|---|
| 763 | Key_Touroku             = 0x0100112b,  // Add to Dictionary | 
|---|
| 764 | Key_Massyo              = 0x0100112c,  // Delete from Dictionary | 
|---|
| 765 | Key_Kana_Lock           = 0x0100112d,  // Kana Lock | 
|---|
| 766 | Key_Kana_Shift          = 0x0100112e,  // Kana Shift | 
|---|
| 767 | Key_Eisu_Shift          = 0x0100112f,  // Alphanumeric Shift | 
|---|
| 768 | Key_Eisu_toggle         = 0x01001130,  // Alphanumeric toggle | 
|---|
| 769 | //Key_Kanji_Bangou        = 0x01001137,  // Codeinput | 
|---|
| 770 | //Key_Zen_Koho            = 0x0100113d,  // Multiple/All Candidate(s) | 
|---|
| 771 | //Key_Mae_Koho            = 0x0100113e,  // Previous Candidate | 
|---|
| 772 |  | 
|---|
| 773 | // Korean keyboard support | 
|---|
| 774 | // | 
|---|
| 775 | // In fact, many Korean users need only 2 keys, Key_Hangul and | 
|---|
| 776 | // Key_Hangul_Hanja. But rest of the keys are good for future. | 
|---|
| 777 |  | 
|---|
| 778 | Key_Hangul              = 0x01001131,  // Hangul start/stop(toggle) | 
|---|
| 779 | Key_Hangul_Start        = 0x01001132,  // Hangul start | 
|---|
| 780 | Key_Hangul_End          = 0x01001133,  // Hangul end, English start | 
|---|
| 781 | Key_Hangul_Hanja        = 0x01001134,  // Start Hangul->Hanja Conversion | 
|---|
| 782 | Key_Hangul_Jamo         = 0x01001135,  // Hangul Jamo mode | 
|---|
| 783 | Key_Hangul_Romaja       = 0x01001136,  // Hangul Romaja mode | 
|---|
| 784 | //Key_Hangul_Codeinput    = 0x01001137,  // Hangul code input mode | 
|---|
| 785 | Key_Hangul_Jeonja       = 0x01001138,  // Jeonja mode | 
|---|
| 786 | Key_Hangul_Banja        = 0x01001139,  // Banja mode | 
|---|
| 787 | Key_Hangul_PreHanja     = 0x0100113a,  // Pre Hanja conversion | 
|---|
| 788 | Key_Hangul_PostHanja    = 0x0100113b,  // Post Hanja conversion | 
|---|
| 789 | //Key_Hangul_SingleCandidate   = 0x0100113c,  // Single candidate | 
|---|
| 790 | //Key_Hangul_MultipleCandidate = 0x0100113d,  // Multiple candidate | 
|---|
| 791 | //Key_Hangul_PreviousCandidate = 0x0100113e,  // Previous candidate | 
|---|
| 792 | Key_Hangul_Special      = 0x0100113f,  // Special symbols | 
|---|
| 793 | //Key_Hangul_switch       = 0x0100117e,  // Alias for mode_switch | 
|---|
| 794 |  | 
|---|
| 795 | // dead keys (X keycode - 0xED00 to avoid the conflict) | 
|---|
| 796 | Key_Dead_Grave          = 0x01001250, | 
|---|
| 797 | Key_Dead_Acute          = 0x01001251, | 
|---|
| 798 | Key_Dead_Circumflex     = 0x01001252, | 
|---|
| 799 | Key_Dead_Tilde          = 0x01001253, | 
|---|
| 800 | Key_Dead_Macron         = 0x01001254, | 
|---|
| 801 | Key_Dead_Breve          = 0x01001255, | 
|---|
| 802 | Key_Dead_Abovedot       = 0x01001256, | 
|---|
| 803 | Key_Dead_Diaeresis      = 0x01001257, | 
|---|
| 804 | Key_Dead_Abovering      = 0x01001258, | 
|---|
| 805 | Key_Dead_Doubleacute    = 0x01001259, | 
|---|
| 806 | Key_Dead_Caron          = 0x0100125a, | 
|---|
| 807 | Key_Dead_Cedilla        = 0x0100125b, | 
|---|
| 808 | Key_Dead_Ogonek         = 0x0100125c, | 
|---|
| 809 | Key_Dead_Iota           = 0x0100125d, | 
|---|
| 810 | Key_Dead_Voiced_Sound   = 0x0100125e, | 
|---|
| 811 | Key_Dead_Semivoiced_Sound = 0x0100125f, | 
|---|
| 812 | Key_Dead_Belowdot       = 0x01001260, | 
|---|
| 813 | Key_Dead_Hook           = 0x01001261, | 
|---|
| 814 | Key_Dead_Horn           = 0x01001262, | 
|---|
| 815 | Key_Dead_Stroke         = 0x01001263, | 
|---|
| 816 | Key_Dead_Abovecomma     = 0x01001264, | 
|---|
| 817 | Key_Dead_Abovereversedcomma = 0x01001265, | 
|---|
| 818 | Key_Dead_Doublegrave    = 0x01001266, | 
|---|
| 819 | Key_Dead_Belowring      = 0x01001267, | 
|---|
| 820 | Key_Dead_Belowmacron    = 0x01001268, | 
|---|
| 821 | Key_Dead_Belowcircumflex = 0x01001269, | 
|---|
| 822 | Key_Dead_Belowtilde     = 0x0100126a, | 
|---|
| 823 | Key_Dead_Belowbreve     = 0x0100126b, | 
|---|
| 824 | Key_Dead_Belowdiaeresis = 0x0100126c, | 
|---|
| 825 | Key_Dead_Invertedbreve  = 0x0100126d, | 
|---|
| 826 | Key_Dead_Belowcomma     = 0x0100126e, | 
|---|
| 827 | Key_Dead_Currency       = 0x0100126f, | 
|---|
| 828 | Key_Dead_a              = 0x01001280, | 
|---|
| 829 | Key_Dead_A              = 0x01001281, | 
|---|
| 830 | Key_Dead_e              = 0x01001282, | 
|---|
| 831 | Key_Dead_E              = 0x01001283, | 
|---|
| 832 | Key_Dead_i              = 0x01001284, | 
|---|
| 833 | Key_Dead_I              = 0x01001285, | 
|---|
| 834 | Key_Dead_o              = 0x01001286, | 
|---|
| 835 | Key_Dead_O              = 0x01001287, | 
|---|
| 836 | Key_Dead_u              = 0x01001288, | 
|---|
| 837 | Key_Dead_U              = 0x01001289, | 
|---|
| 838 | Key_Dead_Small_Schwa    = 0x0100128a, | 
|---|
| 839 | Key_Dead_Capital_Schwa  = 0x0100128b, | 
|---|
| 840 | Key_Dead_Greek          = 0x0100128c, | 
|---|
| 841 | Key_Dead_Lowline        = 0x01001290, | 
|---|
| 842 | Key_Dead_Aboveverticalline = 0x01001291, | 
|---|
| 843 | Key_Dead_Belowverticalline = 0x01001292, | 
|---|
| 844 | Key_Dead_Longsolidusoverlay = 0x01001293, | 
|---|
| 845 |  | 
|---|
| 846 | // multimedia/internet keys - ignored by default - see QKeyEvent c'tor | 
|---|
| 847 | Key_Back  = 0x01000061, | 
|---|
| 848 | Key_Forward  = 0x01000062, | 
|---|
| 849 | Key_Stop  = 0x01000063, | 
|---|
| 850 | Key_Refresh  = 0x01000064, | 
|---|
| 851 | Key_VolumeDown = 0x01000070, | 
|---|
| 852 | Key_VolumeMute  = 0x01000071, | 
|---|
| 853 | Key_VolumeUp = 0x01000072, | 
|---|
| 854 | Key_BassBoost = 0x01000073, | 
|---|
| 855 | Key_BassUp = 0x01000074, | 
|---|
| 856 | Key_BassDown = 0x01000075, | 
|---|
| 857 | Key_TrebleUp = 0x01000076, | 
|---|
| 858 | Key_TrebleDown = 0x01000077, | 
|---|
| 859 | Key_MediaPlay  = 0x01000080, | 
|---|
| 860 | Key_MediaStop  = 0x01000081, | 
|---|
| 861 | Key_MediaPrevious  = 0x01000082, | 
|---|
| 862 | Key_MediaNext  = 0x01000083, | 
|---|
| 863 | Key_MediaRecord = 0x01000084, | 
|---|
| 864 | Key_MediaPause = 0x01000085, | 
|---|
| 865 | Key_MediaTogglePlayPause = 0x01000086, | 
|---|
| 866 | Key_HomePage  = 0x01000090, | 
|---|
| 867 | Key_Favorites  = 0x01000091, | 
|---|
| 868 | Key_Search  = 0x01000092, | 
|---|
| 869 | Key_Standby = 0x01000093, | 
|---|
| 870 | Key_OpenUrl = 0x01000094, | 
|---|
| 871 | Key_LaunchMail  = 0x010000a0, | 
|---|
| 872 | Key_LaunchMedia = 0x010000a1, | 
|---|
| 873 | Key_Launch0  = 0x010000a2, | 
|---|
| 874 | Key_Launch1  = 0x010000a3, | 
|---|
| 875 | Key_Launch2  = 0x010000a4, | 
|---|
| 876 | Key_Launch3  = 0x010000a5, | 
|---|
| 877 | Key_Launch4  = 0x010000a6, | 
|---|
| 878 | Key_Launch5  = 0x010000a7, | 
|---|
| 879 | Key_Launch6  = 0x010000a8, | 
|---|
| 880 | Key_Launch7  = 0x010000a9, | 
|---|
| 881 | Key_Launch8  = 0x010000aa, | 
|---|
| 882 | Key_Launch9  = 0x010000ab, | 
|---|
| 883 | Key_LaunchA  = 0x010000ac, | 
|---|
| 884 | Key_LaunchB  = 0x010000ad, | 
|---|
| 885 | Key_LaunchC  = 0x010000ae, | 
|---|
| 886 | Key_LaunchD  = 0x010000af, | 
|---|
| 887 | Key_LaunchE  = 0x010000b0, | 
|---|
| 888 | Key_LaunchF  = 0x010000b1, | 
|---|
| 889 | Key_MonBrightnessUp = 0x010000b2, | 
|---|
| 890 | Key_MonBrightnessDown = 0x010000b3, | 
|---|
| 891 | Key_KeyboardLightOnOff = 0x010000b4, | 
|---|
| 892 | Key_KeyboardBrightnessUp = 0x010000b5, | 
|---|
| 893 | Key_KeyboardBrightnessDown = 0x010000b6, | 
|---|
| 894 | Key_PowerOff = 0x010000b7, | 
|---|
| 895 | Key_WakeUp = 0x010000b8, | 
|---|
| 896 | Key_Eject = 0x010000b9, | 
|---|
| 897 | Key_ScreenSaver = 0x010000ba, | 
|---|
| 898 | Key_WWW = 0x010000bb, | 
|---|
| 899 | Key_Memo = 0x010000bc, | 
|---|
| 900 | Key_LightBulb = 0x010000bd, | 
|---|
| 901 | Key_Shop = 0x010000be, | 
|---|
| 902 | Key_History = 0x010000bf, | 
|---|
| 903 | Key_AddFavorite = 0x010000c0, | 
|---|
| 904 | Key_HotLinks = 0x010000c1, | 
|---|
| 905 | Key_BrightnessAdjust = 0x010000c2, | 
|---|
| 906 | Key_Finance = 0x010000c3, | 
|---|
| 907 | = 0x010000c4, | 
|---|
| 908 | Key_AudioRewind = 0x010000c5, // Media rewind | 
|---|
| 909 | Key_BackForward = 0x010000c6, | 
|---|
| 910 | Key_ApplicationLeft = 0x010000c7, | 
|---|
| 911 | Key_ApplicationRight = 0x010000c8, | 
|---|
| 912 | Key_Book = 0x010000c9, | 
|---|
| 913 | Key_CD = 0x010000ca, | 
|---|
| 914 | Key_Calculator = 0x010000cb, | 
|---|
| 915 | Key_ToDoList = 0x010000cc, | 
|---|
| 916 | Key_ClearGrab = 0x010000cd, | 
|---|
| 917 | Key_Close = 0x010000ce, | 
|---|
| 918 | Key_Copy = 0x010000cf, | 
|---|
| 919 | Key_Cut = 0x010000d0, | 
|---|
| 920 | Key_Display = 0x010000d1, // Output switch key | 
|---|
| 921 | Key_DOS = 0x010000d2, | 
|---|
| 922 | Key_Documents = 0x010000d3, | 
|---|
| 923 | Key_Excel = 0x010000d4, | 
|---|
| 924 | Key_Explorer = 0x010000d5, | 
|---|
| 925 | Key_Game = 0x010000d6, | 
|---|
| 926 | Key_Go = 0x010000d7, | 
|---|
| 927 | Key_iTouch = 0x010000d8, | 
|---|
| 928 | Key_LogOff = 0x010000d9, | 
|---|
| 929 | Key_Market = 0x010000da, | 
|---|
| 930 | Key_Meeting = 0x010000db, | 
|---|
| 931 | = 0x010000dc, | 
|---|
| 932 | = 0x010000dd, | 
|---|
| 933 | Key_MySites = 0x010000de, | 
|---|
| 934 | Key_News = 0x010000df, | 
|---|
| 935 | Key_OfficeHome = 0x010000e0, | 
|---|
| 936 | Key_Option = 0x010000e1, | 
|---|
| 937 | Key_Paste = 0x010000e2, | 
|---|
| 938 | Key_Phone = 0x010000e3, | 
|---|
| 939 | Key_Calendar = 0x010000e4, | 
|---|
| 940 | Key_Reply = 0x010000e5, | 
|---|
| 941 | Key_Reload = 0x010000e6, | 
|---|
| 942 | Key_RotateWindows = 0x010000e7, | 
|---|
| 943 | Key_RotationPB = 0x010000e8, | 
|---|
| 944 | Key_RotationKB = 0x010000e9, | 
|---|
| 945 | Key_Save = 0x010000ea, | 
|---|
| 946 | Key_Send = 0x010000eb, | 
|---|
| 947 | Key_Spell = 0x010000ec, | 
|---|
| 948 | Key_SplitScreen = 0x010000ed, | 
|---|
| 949 | Key_Support = 0x010000ee, | 
|---|
| 950 | Key_TaskPane = 0x010000ef, | 
|---|
| 951 | Key_Terminal = 0x010000f0, | 
|---|
| 952 | Key_Tools = 0x010000f1, | 
|---|
| 953 | Key_Travel = 0x010000f2, | 
|---|
| 954 | Key_Video = 0x010000f3, | 
|---|
| 955 | Key_Word = 0x010000f4, | 
|---|
| 956 | Key_Xfer = 0x010000f5, | 
|---|
| 957 | Key_ZoomIn = 0x010000f6, | 
|---|
| 958 | Key_ZoomOut = 0x010000f7, | 
|---|
| 959 | Key_Away = 0x010000f8, | 
|---|
| 960 | Key_Messenger = 0x010000f9, | 
|---|
| 961 | Key_WebCam = 0x010000fa, | 
|---|
| 962 | Key_MailForward = 0x010000fb, | 
|---|
| 963 | Key_Pictures = 0x010000fc, | 
|---|
| 964 | Key_Music = 0x010000fd, | 
|---|
| 965 | Key_Battery = 0x010000fe, | 
|---|
| 966 | Key_Bluetooth = 0x010000ff, | 
|---|
| 967 | Key_WLAN = 0x01000100, | 
|---|
| 968 | Key_UWB = 0x01000101, | 
|---|
| 969 | Key_AudioForward = 0x01000102, // Media fast-forward | 
|---|
| 970 | Key_AudioRepeat = 0x01000103, // Toggle repeat mode | 
|---|
| 971 | Key_AudioRandomPlay = 0x01000104, // Toggle shuffle mode | 
|---|
| 972 | Key_Subtitle = 0x01000105, | 
|---|
| 973 | Key_AudioCycleTrack = 0x01000106, | 
|---|
| 974 | Key_Time = 0x01000107, | 
|---|
| 975 | Key_Hibernate = 0x01000108, | 
|---|
| 976 | Key_View = 0x01000109, | 
|---|
| 977 | = 0x0100010a, | 
|---|
| 978 | Key_PowerDown = 0x0100010b, | 
|---|
| 979 | Key_Suspend = 0x0100010c, | 
|---|
| 980 | Key_ContrastAdjust = 0x0100010d, | 
|---|
| 981 |  | 
|---|
| 982 | // We can remove these two for Qt 7: | 
|---|
| 983 | Key_LaunchG  = 0x0100010e, | 
|---|
| 984 | Key_LaunchH  = 0x0100010f, | 
|---|
| 985 |  | 
|---|
| 986 | Key_TouchpadToggle = 0x01000110, | 
|---|
| 987 | Key_TouchpadOn = 0x01000111, | 
|---|
| 988 | Key_TouchpadOff = 0x01000112, | 
|---|
| 989 |  | 
|---|
| 990 | Key_MicMute = 0x01000113, | 
|---|
| 991 |  | 
|---|
| 992 | Key_Red = 0x01000114, | 
|---|
| 993 | Key_Green = 0x01000115, | 
|---|
| 994 | Key_Yellow = 0x01000116, | 
|---|
| 995 | Key_Blue = 0x01000117, | 
|---|
| 996 |  | 
|---|
| 997 | Key_ChannelUp = 0x01000118, | 
|---|
| 998 | Key_ChannelDown = 0x01000119, | 
|---|
| 999 |  | 
|---|
| 1000 | Key_Guide    = 0x0100011a, | 
|---|
| 1001 | Key_Info     = 0x0100011b, | 
|---|
| 1002 | Key_Settings = 0x0100011c, | 
|---|
| 1003 |  | 
|---|
| 1004 | Key_MicVolumeUp   = 0x0100011d, | 
|---|
| 1005 | Key_MicVolumeDown = 0x0100011e, | 
|---|
| 1006 |  | 
|---|
| 1007 | Key_New      = 0x01000120, | 
|---|
| 1008 | Key_Open     = 0x01000121, | 
|---|
| 1009 | Key_Find     = 0x01000122, | 
|---|
| 1010 | Key_Undo     = 0x01000123, | 
|---|
| 1011 | Key_Redo     = 0x01000124, | 
|---|
| 1012 |  | 
|---|
| 1013 | Key_MediaLast = 0x0100ffff, | 
|---|
| 1014 |  | 
|---|
| 1015 | // Keypad navigation keys | 
|---|
| 1016 | Key_Select = 0x01010000, | 
|---|
| 1017 | Key_Yes = 0x01010001, | 
|---|
| 1018 | Key_No = 0x01010002, | 
|---|
| 1019 |  | 
|---|
| 1020 | // Newer misc keys | 
|---|
| 1021 | Key_Cancel  = 0x01020001, | 
|---|
| 1022 | Key_Printer = 0x01020002, | 
|---|
| 1023 | Key_Execute = 0x01020003, | 
|---|
| 1024 | Key_Sleep   = 0x01020004, | 
|---|
| 1025 | Key_Play    = 0x01020005, // Not the same as Key_MediaPlay | 
|---|
| 1026 | Key_Zoom    = 0x01020006, | 
|---|
| 1027 | //Key_Jisho   = 0x01020007, // IME: Dictionary key | 
|---|
| 1028 | //Key_Oyayubi_Left = 0x01020008, // IME: Left Oyayubi key | 
|---|
| 1029 | //Key_Oyayubi_Right = 0x01020009, // IME: Right Oyayubi key | 
|---|
| 1030 | Key_Exit    = 0x0102000a, | 
|---|
| 1031 |  | 
|---|
| 1032 | // Device keys | 
|---|
| 1033 | Key_Context1 = 0x01100000, | 
|---|
| 1034 | Key_Context2 = 0x01100001, | 
|---|
| 1035 | Key_Context3 = 0x01100002, | 
|---|
| 1036 | Key_Context4 = 0x01100003, | 
|---|
| 1037 | Key_Call = 0x01100004,      // set absolute state to in a call (do not toggle state) | 
|---|
| 1038 | Key_Hangup = 0x01100005,    // set absolute state to hang up (do not toggle state) | 
|---|
| 1039 | Key_Flip = 0x01100006, | 
|---|
| 1040 | Key_ToggleCallHangup = 0x01100007, // a toggle key for answering, or hanging up, based on current call state | 
|---|
| 1041 | Key_VoiceDial = 0x01100008, | 
|---|
| 1042 | Key_LastNumberRedial = 0x01100009, | 
|---|
| 1043 |  | 
|---|
| 1044 | Key_Camera = 0x01100020, | 
|---|
| 1045 | Key_CameraFocus = 0x01100021, | 
|---|
| 1046 |  | 
|---|
| 1047 | // WARNING: Do not add any keys in the range 0x01200000 to 0xffffffff, | 
|---|
| 1048 | // as those bits are reserved for the Qt::KeyboardModifier enum below. | 
|---|
| 1049 |  | 
|---|
| 1050 | Key_unknown = 0x01ffffff | 
|---|
| 1051 | }; | 
|---|
| 1052 |  | 
|---|
| 1053 | enum KeyboardModifier { | 
|---|
| 1054 | NoModifier           = 0x00000000, | 
|---|
| 1055 | ShiftModifier        = 0x02000000, | 
|---|
| 1056 | ControlModifier      = 0x04000000, | 
|---|
| 1057 | AltModifier          = 0x08000000, | 
|---|
| 1058 | MetaModifier         = 0x10000000, | 
|---|
| 1059 | KeypadModifier       = 0x20000000, | 
|---|
| 1060 | GroupSwitchModifier  = 0x40000000, | 
|---|
| 1061 | // Do not extend the mask to include 0x01000000 | 
|---|
| 1062 | KeyboardModifierMask = 0xfe000000 | 
|---|
| 1063 | }; | 
|---|
| 1064 | Q_DECLARE_FLAGS(KeyboardModifiers, KeyboardModifier) | 
|---|
| 1065 | Q_DECLARE_OPERATORS_FOR_FLAGS(KeyboardModifiers) | 
|---|
| 1066 |  | 
|---|
| 1067 | //shorter names for shortcuts | 
|---|
| 1068 | // The use of all-caps identifiers has the potential for clashing with | 
|---|
| 1069 | // user-defined or third-party macros. More so when the identifiers are not | 
|---|
| 1070 | // "namespace"-prefixed. This is considered bad practice and is why | 
|---|
| 1071 | // KeypadModifier was not added to the Modifier enum. | 
|---|
| 1072 | // ### Qt 7: consider deprecating in favor of KeyboardModifier. | 
|---|
| 1073 | enum Modifier { | 
|---|
| 1074 | META          = Qt::MetaModifier, | 
|---|
| 1075 | SHIFT         = Qt::ShiftModifier, | 
|---|
| 1076 | CTRL          = Qt::ControlModifier, | 
|---|
| 1077 | ALT           = Qt::AltModifier, | 
|---|
| 1078 | MODIFIER_MASK = KeyboardModifierMask, | 
|---|
| 1079 | }; | 
|---|
| 1080 | Q_DECLARE_FLAGS(Modifiers, Modifier) | 
|---|
| 1081 | Q_DECLARE_OPERATORS_FOR_FLAGS(Modifiers) | 
|---|
| 1082 |  | 
|---|
| 1083 | enum ArrowType { | 
|---|
| 1084 | NoArrow, | 
|---|
| 1085 | UpArrow, | 
|---|
| 1086 | DownArrow, | 
|---|
| 1087 | LeftArrow, | 
|---|
| 1088 | RightArrow | 
|---|
| 1089 | }; | 
|---|
| 1090 |  | 
|---|
| 1091 | enum PenStyle { // pen style | 
|---|
| 1092 | NoPen, | 
|---|
| 1093 | SolidLine, | 
|---|
| 1094 | DashLine, | 
|---|
| 1095 | DotLine, | 
|---|
| 1096 | DashDotLine, | 
|---|
| 1097 | DashDotDotLine, | 
|---|
| 1098 | CustomDashLine | 
|---|
| 1099 | #ifndef Q_MOC_RUN | 
|---|
| 1100 | , MPenStyle = 0x0f | 
|---|
| 1101 | #endif | 
|---|
| 1102 | }; | 
|---|
| 1103 |  | 
|---|
| 1104 | enum PenCapStyle { // line endcap style | 
|---|
| 1105 | FlatCap = 0x00, | 
|---|
| 1106 | SquareCap = 0x10, | 
|---|
| 1107 | RoundCap = 0x20, | 
|---|
| 1108 | MPenCapStyle = 0x30 | 
|---|
| 1109 | }; | 
|---|
| 1110 |  | 
|---|
| 1111 | enum PenJoinStyle { // line join style | 
|---|
| 1112 | MiterJoin = 0x00, | 
|---|
| 1113 | BevelJoin = 0x40, | 
|---|
| 1114 | RoundJoin = 0x80, | 
|---|
| 1115 | SvgMiterJoin = 0x100, | 
|---|
| 1116 | MPenJoinStyle = 0x1c0 | 
|---|
| 1117 | }; | 
|---|
| 1118 |  | 
|---|
| 1119 | enum BrushStyle { // brush style | 
|---|
| 1120 | NoBrush, | 
|---|
| 1121 | SolidPattern, | 
|---|
| 1122 | Dense1Pattern, | 
|---|
| 1123 | Dense2Pattern, | 
|---|
| 1124 | Dense3Pattern, | 
|---|
| 1125 | Dense4Pattern, | 
|---|
| 1126 | Dense5Pattern, | 
|---|
| 1127 | Dense6Pattern, | 
|---|
| 1128 | Dense7Pattern, | 
|---|
| 1129 | HorPattern, | 
|---|
| 1130 | VerPattern, | 
|---|
| 1131 | CrossPattern, | 
|---|
| 1132 | BDiagPattern, | 
|---|
| 1133 | FDiagPattern, | 
|---|
| 1134 | DiagCrossPattern, | 
|---|
| 1135 | LinearGradientPattern, | 
|---|
| 1136 | RadialGradientPattern, | 
|---|
| 1137 | ConicalGradientPattern, | 
|---|
| 1138 | TexturePattern = 24 | 
|---|
| 1139 | }; | 
|---|
| 1140 |  | 
|---|
| 1141 | enum SizeMode { | 
|---|
| 1142 | AbsoluteSize, | 
|---|
| 1143 | RelativeSize | 
|---|
| 1144 | }; | 
|---|
| 1145 |  | 
|---|
| 1146 | enum UIEffect { | 
|---|
| 1147 | UI_General, | 
|---|
| 1148 | , | 
|---|
| 1149 | , | 
|---|
| 1150 | UI_AnimateCombo, | 
|---|
| 1151 | UI_AnimateTooltip, | 
|---|
| 1152 | UI_FadeTooltip, | 
|---|
| 1153 | UI_AnimateToolBox | 
|---|
| 1154 | }; | 
|---|
| 1155 |  | 
|---|
| 1156 | enum CursorShape { | 
|---|
| 1157 | ArrowCursor, | 
|---|
| 1158 | UpArrowCursor, | 
|---|
| 1159 | CrossCursor, | 
|---|
| 1160 | WaitCursor, | 
|---|
| 1161 | IBeamCursor, | 
|---|
| 1162 | SizeVerCursor, | 
|---|
| 1163 | SizeHorCursor, | 
|---|
| 1164 | SizeBDiagCursor, | 
|---|
| 1165 | SizeFDiagCursor, | 
|---|
| 1166 | SizeAllCursor, | 
|---|
| 1167 | BlankCursor, | 
|---|
| 1168 | SplitVCursor, | 
|---|
| 1169 | SplitHCursor, | 
|---|
| 1170 | PointingHandCursor, | 
|---|
| 1171 | ForbiddenCursor, | 
|---|
| 1172 | WhatsThisCursor, | 
|---|
| 1173 | BusyCursor, | 
|---|
| 1174 | OpenHandCursor, | 
|---|
| 1175 | ClosedHandCursor, | 
|---|
| 1176 | DragCopyCursor, | 
|---|
| 1177 | DragMoveCursor, | 
|---|
| 1178 | DragLinkCursor, | 
|---|
| 1179 | LastCursor = DragLinkCursor, | 
|---|
| 1180 | BitmapCursor = 24, | 
|---|
| 1181 | CustomCursor = 25 | 
|---|
| 1182 | }; | 
|---|
| 1183 |  | 
|---|
| 1184 | enum TextFormat { | 
|---|
| 1185 | PlainText, | 
|---|
| 1186 | RichText, | 
|---|
| 1187 | AutoText, | 
|---|
| 1188 | MarkdownText | 
|---|
| 1189 | }; | 
|---|
| 1190 |  | 
|---|
| 1191 | enum AspectRatioMode { | 
|---|
| 1192 | IgnoreAspectRatio, | 
|---|
| 1193 | KeepAspectRatio, | 
|---|
| 1194 | KeepAspectRatioByExpanding | 
|---|
| 1195 | }; | 
|---|
| 1196 |  | 
|---|
| 1197 | enum DockWidgetArea { | 
|---|
| 1198 | LeftDockWidgetArea = 0x1, | 
|---|
| 1199 | RightDockWidgetArea = 0x2, | 
|---|
| 1200 | TopDockWidgetArea = 0x4, | 
|---|
| 1201 | BottomDockWidgetArea = 0x8, | 
|---|
| 1202 |  | 
|---|
| 1203 | DockWidgetArea_Mask = 0xf, | 
|---|
| 1204 | AllDockWidgetAreas = DockWidgetArea_Mask, | 
|---|
| 1205 | NoDockWidgetArea = 0 | 
|---|
| 1206 | }; | 
|---|
| 1207 | enum DockWidgetAreaSizes { | 
|---|
| 1208 | NDockWidgetAreas = 4 | 
|---|
| 1209 | }; | 
|---|
| 1210 |  | 
|---|
| 1211 | Q_DECLARE_FLAGS(DockWidgetAreas, DockWidgetArea) | 
|---|
| 1212 | Q_DECLARE_OPERATORS_FOR_FLAGS(DockWidgetAreas) | 
|---|
| 1213 |  | 
|---|
| 1214 | enum ToolBarArea { | 
|---|
| 1215 | LeftToolBarArea = 0x1, | 
|---|
| 1216 | RightToolBarArea = 0x2, | 
|---|
| 1217 | TopToolBarArea = 0x4, | 
|---|
| 1218 | BottomToolBarArea = 0x8, | 
|---|
| 1219 |  | 
|---|
| 1220 | ToolBarArea_Mask = 0xf, | 
|---|
| 1221 | AllToolBarAreas = ToolBarArea_Mask, | 
|---|
| 1222 | NoToolBarArea = 0 | 
|---|
| 1223 | }; | 
|---|
| 1224 |  | 
|---|
| 1225 | enum ToolBarAreaSizes { | 
|---|
| 1226 | NToolBarAreas = 4 | 
|---|
| 1227 | }; | 
|---|
| 1228 |  | 
|---|
| 1229 | Q_DECLARE_FLAGS(ToolBarAreas, ToolBarArea) | 
|---|
| 1230 | Q_DECLARE_OPERATORS_FOR_FLAGS(ToolBarAreas) | 
|---|
| 1231 |  | 
|---|
| 1232 | enum DateFormat { | 
|---|
| 1233 | TextDate,      // default Qt | 
|---|
| 1234 | ISODate,       // ISO 8601 | 
|---|
| 1235 | RFC2822Date = 8, // RFC 2822 (+ 850 and 1036 during parsing) | 
|---|
| 1236 | ISODateWithMs | 
|---|
| 1237 | }; | 
|---|
| 1238 |  | 
|---|
| 1239 | enum TimeSpec { | 
|---|
| 1240 | LocalTime, | 
|---|
| 1241 | UTC, | 
|---|
| 1242 | OffsetFromUTC, | 
|---|
| 1243 | TimeZone | 
|---|
| 1244 | }; | 
|---|
| 1245 |  | 
|---|
| 1246 | enum DayOfWeek { | 
|---|
| 1247 | Monday = 1, | 
|---|
| 1248 | Tuesday = 2, | 
|---|
| 1249 | Wednesday = 3, | 
|---|
| 1250 | Thursday = 4, | 
|---|
| 1251 | Friday = 5, | 
|---|
| 1252 | Saturday = 6, | 
|---|
| 1253 | Sunday = 7 | 
|---|
| 1254 | }; | 
|---|
| 1255 |  | 
|---|
| 1256 | enum ScrollBarPolicy { | 
|---|
| 1257 | ScrollBarAsNeeded, | 
|---|
| 1258 | ScrollBarAlwaysOff, | 
|---|
| 1259 | ScrollBarAlwaysOn | 
|---|
| 1260 | }; | 
|---|
| 1261 |  | 
|---|
| 1262 | enum CaseSensitivity { | 
|---|
| 1263 | CaseInsensitive, | 
|---|
| 1264 | CaseSensitive | 
|---|
| 1265 | }; | 
|---|
| 1266 |  | 
|---|
| 1267 | enum Corner { | 
|---|
| 1268 | TopLeftCorner = 0x00000, | 
|---|
| 1269 | TopRightCorner = 0x00001, | 
|---|
| 1270 | BottomLeftCorner = 0x00002, | 
|---|
| 1271 | BottomRightCorner = 0x00003 | 
|---|
| 1272 | }; | 
|---|
| 1273 |  | 
|---|
| 1274 | enum Edge { | 
|---|
| 1275 | TopEdge = 0x00001, | 
|---|
| 1276 | LeftEdge = 0x00002, | 
|---|
| 1277 | RightEdge = 0x00004, | 
|---|
| 1278 | BottomEdge = 0x00008 | 
|---|
| 1279 | }; | 
|---|
| 1280 |  | 
|---|
| 1281 | Q_DECLARE_FLAGS(Edges, Edge) | 
|---|
| 1282 | Q_DECLARE_OPERATORS_FOR_FLAGS(Edges) | 
|---|
| 1283 |  | 
|---|
| 1284 | enum ConnectionType { | 
|---|
| 1285 | AutoConnection, | 
|---|
| 1286 | DirectConnection, | 
|---|
| 1287 | QueuedConnection, | 
|---|
| 1288 | BlockingQueuedConnection, | 
|---|
| 1289 | UniqueConnection =  0x80, | 
|---|
| 1290 | SingleShotConnection = 0x100, | 
|---|
| 1291 | }; | 
|---|
| 1292 |  | 
|---|
| 1293 | enum ShortcutContext { | 
|---|
| 1294 | WidgetShortcut, | 
|---|
| 1295 | WindowShortcut, | 
|---|
| 1296 | ApplicationShortcut, | 
|---|
| 1297 | WidgetWithChildrenShortcut | 
|---|
| 1298 | }; | 
|---|
| 1299 |  | 
|---|
| 1300 | enum FillRule { | 
|---|
| 1301 | OddEvenFill, | 
|---|
| 1302 | WindingFill | 
|---|
| 1303 | }; | 
|---|
| 1304 |  | 
|---|
| 1305 | enum MaskMode { | 
|---|
| 1306 | MaskInColor, | 
|---|
| 1307 | MaskOutColor | 
|---|
| 1308 | }; | 
|---|
| 1309 |  | 
|---|
| 1310 | enum ClipOperation { | 
|---|
| 1311 | NoClip, | 
|---|
| 1312 | ReplaceClip, | 
|---|
| 1313 | IntersectClip | 
|---|
| 1314 | }; | 
|---|
| 1315 |  | 
|---|
| 1316 | // Shape = 0x1, BoundingRect = 0x2 | 
|---|
| 1317 | enum ItemSelectionMode { | 
|---|
| 1318 | ContainsItemShape = 0x0, | 
|---|
| 1319 | IntersectsItemShape = 0x1, | 
|---|
| 1320 | ContainsItemBoundingRect = 0x2, | 
|---|
| 1321 | IntersectsItemBoundingRect = 0x3 | 
|---|
| 1322 | }; | 
|---|
| 1323 |  | 
|---|
| 1324 | enum ItemSelectionOperation { | 
|---|
| 1325 | ReplaceSelection, | 
|---|
| 1326 | AddToSelection | 
|---|
| 1327 | }; | 
|---|
| 1328 |  | 
|---|
| 1329 | enum TransformationMode { | 
|---|
| 1330 | FastTransformation, | 
|---|
| 1331 | SmoothTransformation | 
|---|
| 1332 | }; | 
|---|
| 1333 |  | 
|---|
| 1334 | enum Axis { | 
|---|
| 1335 | XAxis, | 
|---|
| 1336 | YAxis, | 
|---|
| 1337 | ZAxis | 
|---|
| 1338 | }; | 
|---|
| 1339 |  | 
|---|
| 1340 | enum FocusReason { | 
|---|
| 1341 | MouseFocusReason, | 
|---|
| 1342 | TabFocusReason, | 
|---|
| 1343 | BacktabFocusReason, | 
|---|
| 1344 | ActiveWindowFocusReason, | 
|---|
| 1345 | , | 
|---|
| 1346 | ShortcutFocusReason, | 
|---|
| 1347 | , | 
|---|
| 1348 | OtherFocusReason, | 
|---|
| 1349 | NoFocusReason | 
|---|
| 1350 | }; | 
|---|
| 1351 |  | 
|---|
| 1352 | enum  { | 
|---|
| 1353 | , | 
|---|
| 1354 | , | 
|---|
| 1355 | , | 
|---|
| 1356 | , | 
|---|
| 1357 |  | 
|---|
| 1358 | }; | 
|---|
| 1359 |  | 
|---|
| 1360 | enum class  { | 
|---|
| 1361 | , | 
|---|
| 1362 | , | 
|---|
| 1363 | }; | 
|---|
| 1364 |  | 
|---|
| 1365 | enum InputMethodQuery { | 
|---|
| 1366 | ImEnabled = 0x1, | 
|---|
| 1367 | ImCursorRectangle = 0x2, | 
|---|
| 1368 | ImFont = 0x4, | 
|---|
| 1369 | ImCursorPosition = 0x8, | 
|---|
| 1370 | ImSurroundingText = 0x10, | 
|---|
| 1371 | ImCurrentSelection = 0x20, | 
|---|
| 1372 | ImMaximumTextLength = 0x40, | 
|---|
| 1373 | ImAnchorPosition = 0x80, | 
|---|
| 1374 | ImHints = 0x100, | 
|---|
| 1375 | ImPreferredLanguage = 0x200, | 
|---|
| 1376 |  | 
|---|
| 1377 | ImAbsolutePosition = 0x400, | 
|---|
| 1378 | ImTextBeforeCursor = 0x800, | 
|---|
| 1379 | ImTextAfterCursor = 0x1000, | 
|---|
| 1380 | ImEnterKeyType = 0x2000, | 
|---|
| 1381 | ImAnchorRectangle = 0x4000, | 
|---|
| 1382 | ImInputItemClipRectangle = 0x8000, | 
|---|
| 1383 |  | 
|---|
| 1384 | ImReadOnly = 0x10000, | 
|---|
| 1385 | ImPlatformData = 0x80000000, | 
|---|
| 1386 | ImQueryInput = ImCursorRectangle | ImCursorPosition | ImSurroundingText | | 
|---|
| 1387 | ImCurrentSelection | ImAnchorRectangle | ImAnchorPosition, | 
|---|
| 1388 | ImQueryAll = 0xffffffff | 
|---|
| 1389 | }; | 
|---|
| 1390 | Q_DECLARE_FLAGS(InputMethodQueries, InputMethodQuery) | 
|---|
| 1391 | Q_DECLARE_OPERATORS_FOR_FLAGS(InputMethodQueries) | 
|---|
| 1392 |  | 
|---|
| 1393 | enum InputMethodHint { | 
|---|
| 1394 | ImhNone = 0x0, | 
|---|
| 1395 |  | 
|---|
| 1396 | ImhHiddenText = 0x1, | 
|---|
| 1397 | ImhSensitiveData = 0x2, | 
|---|
| 1398 | ImhNoAutoUppercase = 0x4, | 
|---|
| 1399 | ImhPreferNumbers = 0x8, | 
|---|
| 1400 | ImhPreferUppercase = 0x10, | 
|---|
| 1401 | ImhPreferLowercase = 0x20, | 
|---|
| 1402 | ImhNoPredictiveText = 0x40, | 
|---|
| 1403 |  | 
|---|
| 1404 | ImhDate = 0x80, | 
|---|
| 1405 | ImhTime = 0x100, | 
|---|
| 1406 |  | 
|---|
| 1407 | ImhPreferLatin = 0x200, | 
|---|
| 1408 |  | 
|---|
| 1409 | ImhMultiLine = 0x400, | 
|---|
| 1410 |  | 
|---|
| 1411 | = 0x800, | 
|---|
| 1412 | ImhNoTextHandles = 0x1000, | 
|---|
| 1413 |  | 
|---|
| 1414 | ImhDigitsOnly = 0x10000, | 
|---|
| 1415 | ImhFormattedNumbersOnly = 0x20000, | 
|---|
| 1416 | ImhUppercaseOnly = 0x40000, | 
|---|
| 1417 | ImhLowercaseOnly = 0x80000, | 
|---|
| 1418 | ImhDialableCharactersOnly = 0x100000, | 
|---|
| 1419 | ImhEmailCharactersOnly = 0x200000, | 
|---|
| 1420 | ImhUrlCharactersOnly = 0x400000, | 
|---|
| 1421 | ImhLatinOnly = 0x800000, | 
|---|
| 1422 |  | 
|---|
| 1423 | ImhExclusiveInputMask = 0xffff0000 | 
|---|
| 1424 | }; | 
|---|
| 1425 | Q_DECLARE_FLAGS(InputMethodHints, InputMethodHint) | 
|---|
| 1426 | Q_DECLARE_OPERATORS_FOR_FLAGS(InputMethodHints) | 
|---|
| 1427 |  | 
|---|
| 1428 | enum EnterKeyType { | 
|---|
| 1429 | EnterKeyDefault, | 
|---|
| 1430 | EnterKeyReturn, | 
|---|
| 1431 | EnterKeyDone, | 
|---|
| 1432 | EnterKeyGo, | 
|---|
| 1433 | EnterKeySend, | 
|---|
| 1434 | EnterKeySearch, | 
|---|
| 1435 | EnterKeyNext, | 
|---|
| 1436 | EnterKeyPrevious | 
|---|
| 1437 | }; | 
|---|
| 1438 |  | 
|---|
| 1439 | enum ToolButtonStyle { | 
|---|
| 1440 | ToolButtonIconOnly, | 
|---|
| 1441 | ToolButtonTextOnly, | 
|---|
| 1442 | ToolButtonTextBesideIcon, | 
|---|
| 1443 | ToolButtonTextUnderIcon, | 
|---|
| 1444 | ToolButtonFollowStyle | 
|---|
| 1445 | }; | 
|---|
| 1446 |  | 
|---|
| 1447 | enum LayoutDirection { | 
|---|
| 1448 | LeftToRight, | 
|---|
| 1449 | RightToLeft, | 
|---|
| 1450 | // ### Qt 7: make auto the first one (with value 0) | 
|---|
| 1451 | LayoutDirectionAuto | 
|---|
| 1452 | }; | 
|---|
| 1453 |  | 
|---|
| 1454 | enum AnchorPoint { | 
|---|
| 1455 | AnchorLeft = 0, | 
|---|
| 1456 | AnchorHorizontalCenter, | 
|---|
| 1457 | AnchorRight, | 
|---|
| 1458 | AnchorTop, | 
|---|
| 1459 | AnchorVerticalCenter, | 
|---|
| 1460 | AnchorBottom | 
|---|
| 1461 | }; | 
|---|
| 1462 |  | 
|---|
| 1463 | enum FindChildOption { | 
|---|
| 1464 | FindDirectChildrenOnly = 0x0, | 
|---|
| 1465 | FindChildrenRecursively = 0x1 | 
|---|
| 1466 | }; | 
|---|
| 1467 | Q_DECLARE_FLAGS(FindChildOptions, FindChildOption) | 
|---|
| 1468 |  | 
|---|
| 1469 | enum DropAction { | 
|---|
| 1470 | CopyAction = 0x1, | 
|---|
| 1471 | MoveAction = 0x2, | 
|---|
| 1472 | LinkAction = 0x4, | 
|---|
| 1473 | ActionMask = 0xff, | 
|---|
| 1474 | TargetMoveAction = 0x8002, | 
|---|
| 1475 | IgnoreAction = 0x0 | 
|---|
| 1476 | }; | 
|---|
| 1477 | Q_DECLARE_FLAGS(DropActions, DropAction) | 
|---|
| 1478 | Q_DECLARE_OPERATORS_FOR_FLAGS(DropActions) | 
|---|
| 1479 |  | 
|---|
| 1480 | enum CheckState { | 
|---|
| 1481 | Unchecked, | 
|---|
| 1482 | PartiallyChecked, | 
|---|
| 1483 | Checked | 
|---|
| 1484 | }; | 
|---|
| 1485 |  | 
|---|
| 1486 | enum ItemDataRole { | 
|---|
| 1487 | DisplayRole = 0, | 
|---|
| 1488 | DecorationRole = 1, | 
|---|
| 1489 | EditRole = 2, | 
|---|
| 1490 | ToolTipRole = 3, | 
|---|
| 1491 | StatusTipRole = 4, | 
|---|
| 1492 | WhatsThisRole = 5, | 
|---|
| 1493 | // Metadata | 
|---|
| 1494 | FontRole = 6, | 
|---|
| 1495 | TextAlignmentRole = 7, | 
|---|
| 1496 | BackgroundRole = 8, | 
|---|
| 1497 | ForegroundRole = 9, | 
|---|
| 1498 | CheckStateRole = 10, | 
|---|
| 1499 | // Accessibility | 
|---|
| 1500 | AccessibleTextRole = 11, | 
|---|
| 1501 | AccessibleDescriptionRole = 12, | 
|---|
| 1502 | // More general purpose | 
|---|
| 1503 | SizeHintRole = 13, | 
|---|
| 1504 | InitialSortOrderRole = 14, | 
|---|
| 1505 | // Internal UiLib roles. Start worrying when public roles go that high. | 
|---|
| 1506 | DisplayPropertyRole = 27, | 
|---|
| 1507 | DecorationPropertyRole = 28, | 
|---|
| 1508 | ToolTipPropertyRole = 29, | 
|---|
| 1509 | StatusTipPropertyRole = 30, | 
|---|
| 1510 | WhatsThisPropertyRole = 31, | 
|---|
| 1511 | // Reserved | 
|---|
| 1512 | UserRole = 0x0100 | 
|---|
| 1513 | }; | 
|---|
| 1514 |  | 
|---|
| 1515 | enum ItemFlag { | 
|---|
| 1516 | NoItemFlags = 0, | 
|---|
| 1517 | ItemIsSelectable = 1, | 
|---|
| 1518 | ItemIsEditable = 2, | 
|---|
| 1519 | ItemIsDragEnabled = 4, | 
|---|
| 1520 | ItemIsDropEnabled = 8, | 
|---|
| 1521 | ItemIsUserCheckable = 16, | 
|---|
| 1522 | ItemIsEnabled = 32, | 
|---|
| 1523 | ItemIsAutoTristate = 64, | 
|---|
| 1524 | ItemNeverHasChildren = 128, | 
|---|
| 1525 | ItemIsUserTristate = 256 | 
|---|
| 1526 | }; | 
|---|
| 1527 | Q_DECLARE_FLAGS(ItemFlags, ItemFlag) | 
|---|
| 1528 | Q_DECLARE_OPERATORS_FOR_FLAGS(ItemFlags) | 
|---|
| 1529 |  | 
|---|
| 1530 | enum MatchFlag { | 
|---|
| 1531 | MatchExactly = 0, | 
|---|
| 1532 | MatchContains = 1, | 
|---|
| 1533 | MatchStartsWith = 2, | 
|---|
| 1534 | MatchEndsWith = 3, | 
|---|
| 1535 | MatchRegularExpression = 4, | 
|---|
| 1536 | MatchWildcard = 5, | 
|---|
| 1537 | MatchFixedString = 8, | 
|---|
| 1538 | MatchTypeMask = 0x0F, | 
|---|
| 1539 | MatchCaseSensitive = 16, | 
|---|
| 1540 | MatchWrap = 32, | 
|---|
| 1541 | MatchRecursive = 64 | 
|---|
| 1542 | }; | 
|---|
| 1543 | Q_DECLARE_FLAGS(MatchFlags, MatchFlag) | 
|---|
| 1544 | Q_DECLARE_OPERATORS_FOR_FLAGS(MatchFlags) | 
|---|
| 1545 |  | 
|---|
| 1546 | typedef void * HANDLE; | 
|---|
| 1547 |  | 
|---|
| 1548 | enum WindowModality { | 
|---|
| 1549 | NonModal, | 
|---|
| 1550 | WindowModal, | 
|---|
| 1551 | ApplicationModal | 
|---|
| 1552 | }; | 
|---|
| 1553 |  | 
|---|
| 1554 | enum TextInteractionFlag { | 
|---|
| 1555 | NoTextInteraction         = 0, | 
|---|
| 1556 | TextSelectableByMouse     = 1, | 
|---|
| 1557 | TextSelectableByKeyboard  = 2, | 
|---|
| 1558 | LinksAccessibleByMouse    = 4, | 
|---|
| 1559 | LinksAccessibleByKeyboard = 8, | 
|---|
| 1560 | TextEditable              = 16, | 
|---|
| 1561 |  | 
|---|
| 1562 | TextEditorInteraction     = TextSelectableByMouse | TextSelectableByKeyboard | TextEditable, | 
|---|
| 1563 | TextBrowserInteraction    = TextSelectableByMouse | LinksAccessibleByMouse | LinksAccessibleByKeyboard | 
|---|
| 1564 | }; | 
|---|
| 1565 | Q_DECLARE_FLAGS(TextInteractionFlags, TextInteractionFlag) | 
|---|
| 1566 | Q_DECLARE_OPERATORS_FOR_FLAGS(TextInteractionFlags) | 
|---|
| 1567 |  | 
|---|
| 1568 | enum EventPriority { | 
|---|
| 1569 | HighEventPriority = 1, | 
|---|
| 1570 | NormalEventPriority = 0, | 
|---|
| 1571 | LowEventPriority = -1 | 
|---|
| 1572 | }; | 
|---|
| 1573 |  | 
|---|
| 1574 | enum SizeHint { | 
|---|
| 1575 | MinimumSize, | 
|---|
| 1576 | PreferredSize, | 
|---|
| 1577 | MaximumSize, | 
|---|
| 1578 | MinimumDescent, | 
|---|
| 1579 | NSizeHints | 
|---|
| 1580 | }; | 
|---|
| 1581 |  | 
|---|
| 1582 | enum WindowFrameSection { | 
|---|
| 1583 | NoSection, | 
|---|
| 1584 | LeftSection,           // For resize | 
|---|
| 1585 | TopLeftSection, | 
|---|
| 1586 | TopSection, | 
|---|
| 1587 | TopRightSection, | 
|---|
| 1588 | RightSection, | 
|---|
| 1589 | BottomRightSection, | 
|---|
| 1590 | BottomSection, | 
|---|
| 1591 | BottomLeftSection, | 
|---|
| 1592 | TitleBarArea    // For move | 
|---|
| 1593 | }; | 
|---|
| 1594 |  | 
|---|
| 1595 | enum class Initialization { | 
|---|
| 1596 | Uninitialized | 
|---|
| 1597 | }; | 
|---|
| 1598 | inline constexpr Initialization Uninitialized = Initialization::Uninitialized; | 
|---|
| 1599 |  | 
|---|
| 1600 | inline QT_DEFINE_TAG(Disambiguated); | 
|---|
| 1601 |  | 
|---|
| 1602 | enum CoordinateSystem { | 
|---|
| 1603 | DeviceCoordinates, | 
|---|
| 1604 | LogicalCoordinates | 
|---|
| 1605 | }; | 
|---|
| 1606 |  | 
|---|
| 1607 | enum TouchPointState { | 
|---|
| 1608 | TouchPointUnknownState = 0x00, | 
|---|
| 1609 | TouchPointPressed    = 0x01, | 
|---|
| 1610 | TouchPointMoved      = 0x02, | 
|---|
| 1611 | TouchPointStationary = 0x04, | 
|---|
| 1612 | TouchPointReleased   = 0x08 | 
|---|
| 1613 | }; | 
|---|
| 1614 | Q_DECLARE_FLAGS(TouchPointStates, TouchPointState) | 
|---|
| 1615 | Q_DECLARE_OPERATORS_FOR_FLAGS(TouchPointStates) | 
|---|
| 1616 |  | 
|---|
| 1617 | #ifndef QT_NO_GESTURES | 
|---|
| 1618 | enum GestureState | 
|---|
| 1619 | { | 
|---|
| 1620 | NoGesture, | 
|---|
| 1621 | GestureStarted  = 1, | 
|---|
| 1622 | GestureUpdated  = 2, | 
|---|
| 1623 | GestureFinished = 3, | 
|---|
| 1624 | GestureCanceled = 4 | 
|---|
| 1625 | }; | 
|---|
| 1626 |  | 
|---|
| 1627 | enum GestureType | 
|---|
| 1628 | { | 
|---|
| 1629 | TapGesture        = 1, | 
|---|
| 1630 | TapAndHoldGesture = 2, | 
|---|
| 1631 | PanGesture        = 3, | 
|---|
| 1632 | PinchGesture      = 4, | 
|---|
| 1633 | SwipeGesture      = 5, | 
|---|
| 1634 |  | 
|---|
| 1635 | CustomGesture     = 0x0100, | 
|---|
| 1636 |  | 
|---|
| 1637 | LastGestureType   = ~0u | 
|---|
| 1638 | }; | 
|---|
| 1639 |  | 
|---|
| 1640 | enum GestureFlag | 
|---|
| 1641 | { | 
|---|
| 1642 | DontStartGestureOnChildren = 0x01, | 
|---|
| 1643 | ReceivePartialGestures     = 0x02, | 
|---|
| 1644 | IgnoredGesturesPropagateToParent = 0x04 | 
|---|
| 1645 | }; | 
|---|
| 1646 | Q_DECLARE_FLAGS(GestureFlags, GestureFlag) | 
|---|
| 1647 | Q_DECLARE_OPERATORS_FOR_FLAGS(GestureFlags) | 
|---|
| 1648 |  | 
|---|
| 1649 | enum NativeGestureType | 
|---|
| 1650 | { | 
|---|
| 1651 | BeginNativeGesture, | 
|---|
| 1652 | EndNativeGesture, | 
|---|
| 1653 | PanNativeGesture, | 
|---|
| 1654 | ZoomNativeGesture, | 
|---|
| 1655 | SmartZoomNativeGesture, | 
|---|
| 1656 | RotateNativeGesture, | 
|---|
| 1657 | SwipeNativeGesture | 
|---|
| 1658 | }; | 
|---|
| 1659 |  | 
|---|
| 1660 | #endif // QT_NO_GESTURES | 
|---|
| 1661 |  | 
|---|
| 1662 | enum NavigationMode | 
|---|
| 1663 | { | 
|---|
| 1664 | NavigationModeNone, | 
|---|
| 1665 | NavigationModeKeypadTabOrder, | 
|---|
| 1666 | NavigationModeKeypadDirectional, | 
|---|
| 1667 | NavigationModeCursorAuto, | 
|---|
| 1668 | NavigationModeCursorForceVisible | 
|---|
| 1669 | }; | 
|---|
| 1670 |  | 
|---|
| 1671 | enum CursorMoveStyle { | 
|---|
| 1672 | LogicalMoveStyle, | 
|---|
| 1673 | VisualMoveStyle | 
|---|
| 1674 | }; | 
|---|
| 1675 |  | 
|---|
| 1676 | enum TimerType { | 
|---|
| 1677 | PreciseTimer, | 
|---|
| 1678 | CoarseTimer, | 
|---|
| 1679 | VeryCoarseTimer | 
|---|
| 1680 | }; | 
|---|
| 1681 |  | 
|---|
| 1682 | enum class TimerId { | 
|---|
| 1683 | Invalid = 0, | 
|---|
| 1684 | }; | 
|---|
| 1685 |  | 
|---|
| 1686 | enum ScrollPhase { | 
|---|
| 1687 | NoScrollPhase = 0, | 
|---|
| 1688 | ScrollBegin, | 
|---|
| 1689 | ScrollUpdate, | 
|---|
| 1690 | ScrollEnd, | 
|---|
| 1691 | ScrollMomentum | 
|---|
| 1692 | }; | 
|---|
| 1693 |  | 
|---|
| 1694 | enum MouseEventSource { | 
|---|
| 1695 | MouseEventNotSynthesized, | 
|---|
| 1696 | MouseEventSynthesizedBySystem, | 
|---|
| 1697 | MouseEventSynthesizedByQt, | 
|---|
| 1698 | MouseEventSynthesizedByApplication | 
|---|
| 1699 | }; | 
|---|
| 1700 |  | 
|---|
| 1701 | enum MouseEventFlag { | 
|---|
| 1702 | NoMouseEventFlag = 0x00, | 
|---|
| 1703 | MouseEventCreatedDoubleClick = 0x01, | 
|---|
| 1704 | MouseEventFlagMask = 0xFF | 
|---|
| 1705 | }; | 
|---|
| 1706 | Q_DECLARE_FLAGS(MouseEventFlags, MouseEventFlag) | 
|---|
| 1707 | Q_DECLARE_OPERATORS_FOR_FLAGS(MouseEventFlags) | 
|---|
| 1708 |  | 
|---|
| 1709 | enum ChecksumType { | 
|---|
| 1710 | ChecksumIso3309, | 
|---|
| 1711 | ChecksumItuV41 | 
|---|
| 1712 | }; | 
|---|
| 1713 |  | 
|---|
| 1714 | enum class HighDpiScaleFactorRoundingPolicy { | 
|---|
| 1715 | Unset, | 
|---|
| 1716 | Round, | 
|---|
| 1717 | Ceil, | 
|---|
| 1718 | Floor, | 
|---|
| 1719 | RoundPreferFloor, | 
|---|
| 1720 | PassThrough | 
|---|
| 1721 | }; | 
|---|
| 1722 |  | 
|---|
| 1723 | enum class PermissionStatus { | 
|---|
| 1724 | Undetermined, | 
|---|
| 1725 | Granted, | 
|---|
| 1726 | Denied, | 
|---|
| 1727 | }; | 
|---|
| 1728 |  | 
|---|
| 1729 | // QTBUG-48701 | 
|---|
| 1730 | enum ReturnByValueConstant { ReturnByValue }; // ### Qt 7: Remove me | 
|---|
| 1731 |  | 
|---|
| 1732 | #ifndef Q_QDOC | 
|---|
| 1733 | // NOTE: Generally, do not add Q_ENUM_NS if a corresponding Q_FLAG_NS exists. | 
|---|
| 1734 | Q_ENUM_NS(ScrollBarPolicy) | 
|---|
| 1735 | Q_ENUM_NS(FocusPolicy) | 
|---|
| 1736 | Q_ENUM_NS(ContextMenuPolicy) | 
|---|
| 1737 | Q_ENUM_NS(ContextMenuTrigger) | 
|---|
| 1738 | Q_ENUM_NS(ArrowType) | 
|---|
| 1739 | Q_ENUM_NS(ToolButtonStyle) | 
|---|
| 1740 | Q_ENUM_NS(PenStyle) | 
|---|
| 1741 | Q_ENUM_NS(PenCapStyle) | 
|---|
| 1742 | Q_ENUM_NS(PenJoinStyle) | 
|---|
| 1743 | Q_ENUM_NS(BrushStyle) | 
|---|
| 1744 | Q_ENUM_NS(FillRule) | 
|---|
| 1745 | Q_ENUM_NS(MaskMode) | 
|---|
| 1746 | Q_ENUM_NS(BGMode) | 
|---|
| 1747 | Q_ENUM_NS(ClipOperation) | 
|---|
| 1748 | Q_ENUM_NS(SizeMode) | 
|---|
| 1749 | Q_ENUM_NS(Axis) | 
|---|
| 1750 | Q_ENUM_NS(Corner) | 
|---|
| 1751 | Q_ENUM_NS(Edge) | 
|---|
| 1752 | Q_ENUM_NS(LayoutDirection) | 
|---|
| 1753 | Q_ENUM_NS(SizeHint) | 
|---|
| 1754 | Q_ENUM_NS(Orientation) | 
|---|
| 1755 | Q_ENUM_NS(DropAction) | 
|---|
| 1756 | Q_FLAG_NS(Alignment) | 
|---|
| 1757 | Q_ENUM_NS(TextFlag) | 
|---|
| 1758 | Q_FLAG_NS(Orientations) | 
|---|
| 1759 | Q_FLAG_NS(SplitBehavior) | 
|---|
| 1760 | Q_FLAG_NS(DropActions) | 
|---|
| 1761 | Q_FLAG_NS(Edges) | 
|---|
| 1762 | Q_FLAG_NS(DockWidgetAreas) | 
|---|
| 1763 | Q_FLAG_NS(ToolBarAreas) | 
|---|
| 1764 | Q_ENUM_NS(DockWidgetArea) | 
|---|
| 1765 | Q_ENUM_NS(ToolBarArea) | 
|---|
| 1766 | Q_ENUM_NS(TextFormat) | 
|---|
| 1767 | Q_ENUM_NS(TextElideMode) | 
|---|
| 1768 | Q_ENUM_NS(DateFormat) | 
|---|
| 1769 | Q_ENUM_NS(TimeSpec) | 
|---|
| 1770 | Q_ENUM_NS(DayOfWeek) | 
|---|
| 1771 | Q_ENUM_NS(CursorShape) | 
|---|
| 1772 | Q_ENUM_NS(GlobalColor) | 
|---|
| 1773 | Q_ENUM_NS(ColorScheme) | 
|---|
| 1774 | Q_ENUM_NS(AspectRatioMode) | 
|---|
| 1775 | Q_ENUM_NS(TransformationMode) | 
|---|
| 1776 | Q_FLAG_NS(ImageConversionFlags) | 
|---|
| 1777 | Q_ENUM_NS(Key) | 
|---|
| 1778 | Q_ENUM_NS(ShortcutContext) | 
|---|
| 1779 | Q_ENUM_NS(TextInteractionFlag) | 
|---|
| 1780 | Q_FLAG_NS(TextInteractionFlags) | 
|---|
| 1781 | Q_ENUM_NS(ItemSelectionMode) | 
|---|
| 1782 | Q_ENUM_NS(ItemSelectionOperation) | 
|---|
| 1783 | Q_FLAG_NS(ItemFlags) | 
|---|
| 1784 | Q_ENUM_NS(CheckState) | 
|---|
| 1785 | Q_ENUM_NS(ItemDataRole) | 
|---|
| 1786 | Q_ENUM_NS(SortOrder) | 
|---|
| 1787 | Q_ENUM_NS(CaseSensitivity) | 
|---|
| 1788 | Q_FLAG_NS(MatchFlags) | 
|---|
| 1789 | Q_ENUM_NS(Modifier) | 
|---|
| 1790 | Q_FLAG_NS(Modifiers) | 
|---|
| 1791 | Q_ENUM_NS(KeyboardModifier) | 
|---|
| 1792 | Q_FLAG_NS(KeyboardModifiers) | 
|---|
| 1793 | Q_FLAG_NS(MouseButtons) | 
|---|
| 1794 | Q_ENUM_NS(WindowType) | 
|---|
| 1795 | Q_ENUM_NS(WindowState) | 
|---|
| 1796 | Q_ENUM_NS(WindowModality) | 
|---|
| 1797 | Q_ENUM_NS(WidgetAttribute) | 
|---|
| 1798 | Q_ENUM_NS(ApplicationAttribute) | 
|---|
| 1799 | Q_FLAG_NS(WindowFlags) | 
|---|
| 1800 | Q_FLAG_NS(WindowStates) | 
|---|
| 1801 | Q_ENUM_NS(FocusReason) | 
|---|
| 1802 | Q_ENUM_NS(InputMethodHint) | 
|---|
| 1803 | Q_ENUM_NS(InputMethodQuery) | 
|---|
| 1804 | Q_FLAG_NS(InputMethodHints) | 
|---|
| 1805 | Q_ENUM_NS(EnterKeyType) | 
|---|
| 1806 | Q_FLAG_NS(InputMethodQueries) | 
|---|
| 1807 | Q_FLAG_NS(TouchPointStates) | 
|---|
| 1808 | Q_ENUM_NS(ScreenOrientation) | 
|---|
| 1809 | Q_FLAG_NS(ScreenOrientations) | 
|---|
| 1810 | Q_ENUM_NS(ConnectionType) | 
|---|
| 1811 | Q_ENUM_NS(ApplicationState) | 
|---|
| 1812 | #ifndef QT_NO_GESTURES | 
|---|
| 1813 | Q_ENUM_NS(GestureState) | 
|---|
| 1814 | Q_ENUM_NS(GestureType) | 
|---|
| 1815 | Q_ENUM_NS(NativeGestureType) | 
|---|
| 1816 | #endif | 
|---|
| 1817 | Q_ENUM_NS(CursorMoveStyle) | 
|---|
| 1818 | Q_ENUM_NS(TimerType) | 
|---|
| 1819 | Q_ENUM_NS(TimerId) | 
|---|
| 1820 | Q_ENUM_NS(ScrollPhase) | 
|---|
| 1821 | Q_ENUM_NS(MouseEventSource) | 
|---|
| 1822 | Q_FLAG_NS(MouseEventFlags) | 
|---|
| 1823 | Q_ENUM_NS(ChecksumType) | 
|---|
| 1824 | Q_ENUM_NS(HighDpiScaleFactorRoundingPolicy) | 
|---|
| 1825 | Q_ENUM_NS(TabFocusBehavior) | 
|---|
| 1826 | Q_ENUM_NS(PermissionStatus) | 
|---|
| 1827 | #endif // Q_DOC | 
|---|
| 1828 |  | 
|---|
| 1829 | } | 
|---|
| 1830 |  | 
|---|
| 1831 | typedef bool (*qInternalCallback)(void **); | 
|---|
| 1832 |  | 
|---|
| 1833 | class Q_CORE_EXPORT QInternal { | 
|---|
| 1834 | public: | 
|---|
| 1835 | enum PaintDeviceFlags { | 
|---|
| 1836 | UnknownDevice = 0x00, | 
|---|
| 1837 | Widget        = 0x01, | 
|---|
| 1838 | Pixmap        = 0x02, | 
|---|
| 1839 | Image         = 0x03, | 
|---|
| 1840 | Printer       = 0x04, | 
|---|
| 1841 | Picture       = 0x05, | 
|---|
| 1842 | Pbuffer       = 0x06,    // GL pbuffer | 
|---|
| 1843 | FramebufferObject = 0x07, // GL framebuffer object | 
|---|
| 1844 | CustomRaster  = 0x08, | 
|---|
| 1845 | PaintBuffer   = 0x0a, | 
|---|
| 1846 | OpenGL        = 0x0b | 
|---|
| 1847 | }; | 
|---|
| 1848 | enum RelayoutType { | 
|---|
| 1849 | RelayoutNormal, | 
|---|
| 1850 | RelayoutDragging, | 
|---|
| 1851 | RelayoutDropped | 
|---|
| 1852 | }; | 
|---|
| 1853 |  | 
|---|
| 1854 | enum DockPosition { | 
|---|
| 1855 | LeftDock, | 
|---|
| 1856 | RightDock, | 
|---|
| 1857 | TopDock, | 
|---|
| 1858 | BottomDock, | 
|---|
| 1859 | DockCount | 
|---|
| 1860 | }; | 
|---|
| 1861 |  | 
|---|
| 1862 | enum Callback { | 
|---|
| 1863 | EventNotifyCallback, | 
|---|
| 1864 | LastCallback | 
|---|
| 1865 | }; | 
|---|
| 1866 | static bool registerCallback(Callback, qInternalCallback); | 
|---|
| 1867 | static bool unregisterCallback(Callback, qInternalCallback); | 
|---|
| 1868 | static bool activateCallbacks(Callback, void **); | 
|---|
| 1869 | }; | 
|---|
| 1870 |  | 
|---|
| 1871 | class QKeyCombination | 
|---|
| 1872 | { | 
|---|
| 1873 | int combination; | 
|---|
| 1874 |  | 
|---|
| 1875 | public: | 
|---|
| 1876 | constexpr Q_IMPLICIT QKeyCombination(Qt::Key key = Qt::Key_unknown) noexcept | 
|---|
| 1877 | : combination(int(key)) | 
|---|
| 1878 | {} | 
|---|
| 1879 |  | 
|---|
| 1880 | constexpr explicit QKeyCombination(Qt::Modifiers modifiers, Qt::Key key = Qt::Key_unknown) noexcept | 
|---|
| 1881 | : combination(modifiers.toInt() | int(key)) | 
|---|
| 1882 | {} | 
|---|
| 1883 |  | 
|---|
| 1884 | constexpr explicit QKeyCombination(Qt::KeyboardModifiers modifiers, Qt::Key key = Qt::Key_unknown) noexcept | 
|---|
| 1885 | : combination(modifiers.toInt() | int(key)) | 
|---|
| 1886 | {} | 
|---|
| 1887 |  | 
|---|
| 1888 | constexpr Qt::KeyboardModifiers keyboardModifiers() const noexcept | 
|---|
| 1889 | { | 
|---|
| 1890 | return Qt::KeyboardModifiers(combination & Qt::KeyboardModifierMask); | 
|---|
| 1891 | } | 
|---|
| 1892 |  | 
|---|
| 1893 | constexpr Qt::Key key() const noexcept | 
|---|
| 1894 | { | 
|---|
| 1895 | return Qt::Key(combination & ~int(Qt::KeyboardModifierMask)); | 
|---|
| 1896 | } | 
|---|
| 1897 |  | 
|---|
| 1898 | static constexpr QKeyCombination fromCombined(int combined) | 
|---|
| 1899 | { | 
|---|
| 1900 | QKeyCombination result; | 
|---|
| 1901 | result.combination = combined; | 
|---|
| 1902 | return result; | 
|---|
| 1903 | } | 
|---|
| 1904 |  | 
|---|
| 1905 | constexpr int toCombined() const noexcept | 
|---|
| 1906 | { | 
|---|
| 1907 | return combination; | 
|---|
| 1908 | } | 
|---|
| 1909 |  | 
|---|
| 1910 | #if QT_DEPRECATED_SINCE(6, 0) | 
|---|
| 1911 | QT_DEPRECATED_VERSION_X(6, 0, "Use QKeyCombination instead of int") | 
|---|
| 1912 | constexpr Q_IMPLICIT operator int() const noexcept | 
|---|
| 1913 | { | 
|---|
| 1914 | return combination; | 
|---|
| 1915 | } | 
|---|
| 1916 | #endif | 
|---|
| 1917 | bool operator<(QKeyCombination) const = delete; | 
|---|
| 1918 | private: | 
|---|
| 1919 | friend constexpr bool comparesEqual(const QKeyCombination &lhs, | 
|---|
| 1920 | const QKeyCombination &rhs) noexcept | 
|---|
| 1921 | { | 
|---|
| 1922 | return lhs.combination == rhs.combination; | 
|---|
| 1923 | } | 
|---|
| 1924 | Q_DECLARE_EQUALITY_COMPARABLE_LITERAL_TYPE(QKeyCombination) | 
|---|
| 1925 | }; | 
|---|
| 1926 |  | 
|---|
| 1927 | Q_DECLARE_TYPEINFO(QKeyCombination, Q_RELOCATABLE_TYPE); | 
|---|
| 1928 |  | 
|---|
| 1929 | namespace Qt { | 
|---|
| 1930 | constexpr QKeyCombination operator|(Qt::Modifier modifier, Qt::Key key) noexcept | 
|---|
| 1931 | { | 
|---|
| 1932 | return QKeyCombination(modifier, key); | 
|---|
| 1933 | } | 
|---|
| 1934 |  | 
|---|
| 1935 | constexpr QKeyCombination operator|(Qt::Modifiers modifiers, Qt::Key key) noexcept | 
|---|
| 1936 | { | 
|---|
| 1937 | return QKeyCombination(modifiers, key); | 
|---|
| 1938 | } | 
|---|
| 1939 |  | 
|---|
| 1940 | constexpr QKeyCombination operator|(Qt::KeyboardModifier modifier, Qt::Key key) noexcept | 
|---|
| 1941 | { | 
|---|
| 1942 | return QKeyCombination(modifier, key); | 
|---|
| 1943 | } | 
|---|
| 1944 |  | 
|---|
| 1945 | constexpr QKeyCombination operator|(Qt::KeyboardModifiers modifiers, Qt::Key key) noexcept | 
|---|
| 1946 | { | 
|---|
| 1947 | return QKeyCombination(modifiers, key); | 
|---|
| 1948 | } | 
|---|
| 1949 |  | 
|---|
| 1950 | constexpr QKeyCombination operator|(Qt::Key key, Qt::Modifier modifier) noexcept | 
|---|
| 1951 | { | 
|---|
| 1952 | return QKeyCombination(modifier, key); | 
|---|
| 1953 | } | 
|---|
| 1954 |  | 
|---|
| 1955 | constexpr QKeyCombination operator|(Qt::Key key, Qt::Modifiers modifiers) noexcept | 
|---|
| 1956 | { | 
|---|
| 1957 | return QKeyCombination(modifiers, key); | 
|---|
| 1958 | } | 
|---|
| 1959 |  | 
|---|
| 1960 | constexpr QKeyCombination operator|(Qt::Key key, Qt::KeyboardModifier modifier) noexcept | 
|---|
| 1961 | { | 
|---|
| 1962 | return QKeyCombination(modifier, key); | 
|---|
| 1963 | } | 
|---|
| 1964 |  | 
|---|
| 1965 | constexpr QKeyCombination operator|(Qt::Key key, Qt::KeyboardModifiers modifiers) noexcept | 
|---|
| 1966 | { | 
|---|
| 1967 | return QKeyCombination(modifiers, key); | 
|---|
| 1968 | } | 
|---|
| 1969 |  | 
|---|
| 1970 | #if QT_DEPRECATED_SINCE(6, 0) | 
|---|
| 1971 | QT_DEPRECATED_VERSION_X(6, 0, "Use operator| instead") | 
|---|
| 1972 | constexpr QKeyCombination operator+(Qt::Modifier modifier, Qt::Key key) noexcept | 
|---|
| 1973 | { | 
|---|
| 1974 | return QKeyCombination(modifier, key); | 
|---|
| 1975 | } | 
|---|
| 1976 |  | 
|---|
| 1977 | QT_DEPRECATED_VERSION_X(6, 0, "Use operator| instead") | 
|---|
| 1978 | constexpr QKeyCombination operator+(Qt::Modifiers modifiers, Qt::Key key) noexcept | 
|---|
| 1979 | { | 
|---|
| 1980 | return QKeyCombination(modifiers, key); | 
|---|
| 1981 | } | 
|---|
| 1982 |  | 
|---|
| 1983 | QT_DEPRECATED_VERSION_X(6, 0, "Use operator| instead") | 
|---|
| 1984 | constexpr QKeyCombination operator+(Qt::KeyboardModifier modifier, Qt::Key key) noexcept | 
|---|
| 1985 | { | 
|---|
| 1986 | return QKeyCombination(modifier, key); | 
|---|
| 1987 | } | 
|---|
| 1988 |  | 
|---|
| 1989 | QT_DEPRECATED_VERSION_X(6, 0, "Use operator| instead") | 
|---|
| 1990 | constexpr QKeyCombination operator+(Qt::KeyboardModifiers modifiers, Qt::Key key) noexcept | 
|---|
| 1991 | { | 
|---|
| 1992 | return QKeyCombination(modifiers, key); | 
|---|
| 1993 | } | 
|---|
| 1994 |  | 
|---|
| 1995 | QT_DEPRECATED_VERSION_X(6, 0, "Use operator| instead") | 
|---|
| 1996 | constexpr QKeyCombination operator+(Qt::Key key, Qt::Modifier modifier) noexcept | 
|---|
| 1997 | { | 
|---|
| 1998 | return QKeyCombination(modifier, key); | 
|---|
| 1999 | } | 
|---|
| 2000 |  | 
|---|
| 2001 | QT_DEPRECATED_VERSION_X(6, 0, "Use operator| instead") | 
|---|
| 2002 | constexpr QKeyCombination operator+(Qt::Key key, Qt::Modifiers modifiers) noexcept | 
|---|
| 2003 | { | 
|---|
| 2004 | return QKeyCombination(modifiers, key); | 
|---|
| 2005 | } | 
|---|
| 2006 |  | 
|---|
| 2007 | QT_DEPRECATED_VERSION_X(6, 0, "Use operator| instead") | 
|---|
| 2008 | constexpr QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifier modifier) noexcept | 
|---|
| 2009 | { | 
|---|
| 2010 | return QKeyCombination(modifier, key); | 
|---|
| 2011 | } | 
|---|
| 2012 |  | 
|---|
| 2013 | QT_DEPRECATED_VERSION_X(6, 0, "Use operator| instead") | 
|---|
| 2014 | constexpr QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifiers modifiers) noexcept | 
|---|
| 2015 | { | 
|---|
| 2016 | return QKeyCombination(modifiers, key); | 
|---|
| 2017 | } | 
|---|
| 2018 | #endif | 
|---|
| 2019 | } | 
|---|
| 2020 |  | 
|---|
| 2021 | QT_END_NAMESPACE | 
|---|
| 2022 |  | 
|---|
| 2023 | #endif // QNAMESPACE_H | 
|---|
| 2024 |  | 
|---|