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