// qnamespace.sip generated by MetaSIP on Thu Sep 11 18:50:31 2014
//
// This file is part of the QtCore Python extension module.
//
// Copyright (c) 2014 Riverbank Computing Limited <info@riverbankcomputing.com>
// 
// This file is part of PyQt.
// 
// This file may be used under the terms of the GNU General Public
// License versions 2.0 or 3.0 as published by the Free Software
// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
// included in the packaging of this file.  Alternatively you may (at
// your option) use any later version of the GNU General Public
// License if such license has been publicly approved by Riverbank
// Computing Limited (or its successors, if any) and the KDE Free Qt
// Foundation. In addition, as a special exception, Riverbank gives you
// certain additional rights. These rights are described in the Riverbank
// GPL Exception version 1.1, which can be found in the file
// GPL_EXCEPTION.txt in this package.
// 
// If you are unsure which license is appropriate for your use, please
// contact the sales department at sales@riverbankcomputing.com.
// 
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.


%ModuleCode
#include <qnamespace.h>
%End

namespace Qt
{
%TypeHeaderCode
#include <qnamespace.h>
%End

    enum GlobalColor
    {
        color0,
        color1,
        black,
        white,
        darkGray,
        gray,
        lightGray,
        red,
        green,
        blue,
        cyan,
        magenta,
        yellow,
        darkRed,
        darkGreen,
        darkBlue,
        darkCyan,
        darkMagenta,
        darkYellow,
        transparent,
    };

    enum KeyboardModifier
    {
        NoModifier,
        ShiftModifier,
        ControlModifier,
        AltModifier,
        MetaModifier,
        KeypadModifier,
%If (Qt_4_2_0 -)
        GroupSwitchModifier,
%End
        KeyboardModifierMask,
    };

    typedef QFlags<Qt::KeyboardModifier> KeyboardModifiers;

    enum Modifier
    {
        META,
        SHIFT,
        CTRL,
        ALT,
        MODIFIER_MASK,
        UNICODE_ACCEL,
    };

    enum MouseButton
    {
        NoButton,
%If (Qt_5_0_0 -)
        AllButtons,
%End
        LeftButton,
        RightButton,
        MidButton,
%If (Qt_4_7_0 -)
        MiddleButton,
%End
        XButton1,
        XButton2,
%If (Qt_5_0_0 -)
        BackButton,
%End
%If (Qt_5_0_0 -)
        ExtraButton1,
%End
%If (Qt_5_0_0 -)
        ForwardButton,
%End
%If (Qt_5_0_0 -)
        ExtraButton2,
%End
%If (Qt_5_0_0 -)
        TaskButton,
%End
%If (Qt_5_0_0 -)
        ExtraButton3,
%End
%If (Qt_5_0_0 -)
        ExtraButton4,
%End
%If (Qt_5_0_0 -)
        ExtraButton5,
%End
%If (Qt_5_0_0 -)
        ExtraButton6,
%End
%If (Qt_5_0_0 -)
        ExtraButton7,
%End
%If (Qt_5_0_0 -)
        ExtraButton8,
%End
%If (Qt_5_0_0 -)
        ExtraButton9,
%End
%If (Qt_5_0_0 -)
        ExtraButton10,
%End
%If (Qt_5_0_0 -)
        ExtraButton11,
%End
%If (Qt_5_0_0 -)
        ExtraButton12,
%End
%If (Qt_5_0_0 -)
        ExtraButton13,
%End
%If (Qt_5_0_0 -)
        ExtraButton14,
%End
%If (Qt_5_0_0 -)
        ExtraButton15,
%End
%If (Qt_5_0_0 -)
        ExtraButton16,
%End
%If (Qt_5_0_0 -)
        ExtraButton17,
%End
%If (Qt_5_0_0 -)
        ExtraButton18,
%End
%If (Qt_5_0_0 -)
        ExtraButton19,
%End
%If (Qt_5_0_0 -)
        ExtraButton20,
%End
%If (Qt_5_0_0 -)
        ExtraButton21,
%End
%If (Qt_5_0_0 -)
        ExtraButton22,
%End
%If (Qt_5_0_0 -)
        ExtraButton23,
%End
%If (Qt_5_0_0 -)
        ExtraButton24,
%End
    };

    typedef QFlags<Qt::MouseButton> MouseButtons;

    enum Orientation
    {
        Horizontal,
        Vertical,
    };

    typedef QFlags<Qt::Orientation> Orientations;

    enum FocusPolicy
    {
        NoFocus,
        TabFocus,
        ClickFocus,
        StrongFocus,
        WheelFocus,
    };

    enum SortOrder
    {
        AscendingOrder,
        DescendingOrder,
    };

    enum AlignmentFlag
    {
        AlignLeft,
        AlignLeading,
        AlignRight,
        AlignTrailing,
        AlignHCenter,
        AlignJustify,
        AlignAbsolute,
        AlignHorizontal_Mask,
        AlignTop,
        AlignBottom,
        AlignVCenter,
        AlignVertical_Mask,
        AlignCenter,
    };

    typedef QFlags<Qt::AlignmentFlag> Alignment;

    enum TextFlag
    {
        TextSingleLine,
        TextDontClip,
        TextExpandTabs,
        TextShowMnemonic,
        TextWordWrap,
        TextWrapAnywhere,
        TextDontPrint,
        TextIncludeTrailingSpaces,
        TextHideMnemonic,
%If (Qt_4_3_0 -)
        TextJustificationForced,
%End
    };

    enum TextElideMode
    {
        ElideLeft,
        ElideRight,
        ElideMiddle,
%If (Qt_4_2_0 -)
        ElideNone,
%End
    };

    enum WindowType
    {
        Widget,
        Window,
        Dialog,
        Sheet,
        Drawer,
        Popup,
        Tool,
        ToolTip,
        SplashScreen,
        Desktop,
        SubWindow,
        WindowType_Mask,
        MSWindowsFixedSizeDialogHint,
        MSWindowsOwnDC,
        X11BypassWindowManagerHint,
        FramelessWindowHint,
%If (Qt_4_2_0 -)
        CustomizeWindowHint,
%End
        WindowTitleHint,
        WindowSystemMenuHint,
        WindowMinimizeButtonHint,
        WindowMaximizeButtonHint,
        WindowMinMaxButtonsHint,
        WindowContextHelpButtonHint,
        WindowShadeButtonHint,
        WindowStaysOnTopHint,
%If (Qt_4_4_0 -)
        WindowOkButtonHint,
%End
%If (Qt_4_4_0 -)
        WindowCancelButtonHint,
%End
%If (Qt_4_5_0 -)
        WindowStaysOnBottomHint,
%End
%If (Qt_4_5_0 -)
        WindowCloseButtonHint,
%End
%If (Qt_4_5_0 -)
        MacWindowToolBarButtonHint,
%End
%If (Qt_4_5_0 -)
        BypassGraphicsProxyWidget,
%End
%If (Qt_4_6_3 - Qt_5_0_0)
        WindowSoftkeysVisibleHint,
%End
%If (Qt_4_6_3 - Qt_5_0_0)
        WindowSoftkeysRespondHint,
%End
%If (Qt_5_0_0 -)
        WindowTransparentForInput,
%End
%If (Qt_5_0_0 -)
        WindowOverridesSystemGestures,
%End
%If (Qt_5_0_0 -)
        WindowDoesNotAcceptFocus,
%End
%If (Qt_5_0_0 -)
        NoDropShadowWindowHint,
%End
%If (Qt_5_0_0 -)
        WindowFullscreenButtonHint,
%End
    };

    typedef QFlags<Qt::WindowType> WindowFlags;

    enum WindowState
    {
        WindowNoState,
        WindowMinimized,
        WindowMaximized,
        WindowFullScreen,
        WindowActive,
    };

    typedef QFlags<Qt::WindowState> WindowStates;

    enum WidgetAttribute
    {
        WA_Disabled,
        WA_UnderMouse,
        WA_MouseTracking,
        WA_OpaquePaintEvent,
        WA_StaticContents,
        WA_LaidOut,
        WA_PaintOnScreen,
        WA_NoSystemBackground,
        WA_UpdatesDisabled,
        WA_Mapped,
        WA_MacNoClickThrough,
%If (- Qt_5_0_0)
        WA_PaintOutsidePaintEvent,
%End
        WA_InputMethodEnabled,
        WA_WState_Visible,
        WA_WState_Hidden,
        WA_ForceDisabled,
        WA_KeyCompression,
        WA_PendingMoveEvent,
        WA_PendingResizeEvent,
        WA_SetPalette,
        WA_SetFont,
        WA_SetCursor,
        WA_NoChildEventsFromChildren,
        WA_WindowModified,
        WA_Resized,
        WA_Moved,
        WA_PendingUpdate,
        WA_InvalidSize,
        WA_MacMetalStyle,
        WA_CustomWhatsThis,
        WA_LayoutOnEntireRect,
        WA_OutsideWSRange,
        WA_GrabbedShortcut,
        WA_TransparentForMouseEvents,
        WA_PaintUnclipped,
        WA_SetWindowIcon,
        WA_NoMouseReplay,
        WA_DeleteOnClose,
        WA_RightToLeft,
        WA_SetLayoutDirection,
        WA_NoChildEventsForParent,
        WA_ForceUpdatesDisabled,
        WA_WState_Created,
        WA_WState_CompressKeys,
        WA_WState_InPaintEvent,
        WA_WState_Reparented,
        WA_WState_ConfigPending,
        WA_WState_Polished,
        WA_WState_OwnSizePolicy,
        WA_WState_ExplicitShowHide,
        WA_MouseNoMask,
        WA_GroupLeader,
        WA_NoMousePropagation,
        WA_Hover,
        WA_InputMethodTransparent,
        WA_QuitOnClose,
        WA_KeyboardFocusChange,
        WA_AcceptDrops,
        WA_WindowPropagation,
        WA_NoX11EventCompression,
        WA_TintedBackground,
%If (Qt_4_1_3 -)
        WA_X11OpenGLOverlay,
%End
        WA_AttributeCount,
%If (Qt_4_2_0 -)
        WA_AlwaysShowToolTips,
%End
%If (Qt_4_2_0 -)
        WA_MacOpaqueSizeGrip,
%End
%If (Qt_4_2_0 -)
        WA_SetStyle,
%End
%If (Qt_4_3_0 -)
        WA_MacBrushedMetal,
%End
%If (Qt_4_3_0 -)
        WA_SetLocale,
%End
%If (Qt_4_3_0 -)
        WA_MacShowFocusRect,
%End
%If (Qt_4_3_0 -)
        WA_MacNormalSize,
%End
%If (Qt_4_3_0 -)
        WA_MacSmallSize,
%End
%If (Qt_4_3_0 -)
        WA_MacMiniSize,
%End
%If (Qt_4_3_0 -)
        WA_LayoutUsesWidgetRect,
%End
%If (Qt_4_3_0 -)
        WA_StyledBackground,
%End
%If (Qt_4_3_0 -)
        WA_MSWindowsUseDirect3D,
%End
%If (Qt_4_3_0 -)
        WA_MacAlwaysShowToolWindow,
%End
%If (Qt_4_3_0 -)
        WA_StyleSheet,
%End
%If (Qt_4_4_0 -)
        WA_ShowWithoutActivating,
%End
%If (Qt_4_4_0 -)
        WA_NativeWindow,
%End
%If (Qt_4_4_0 -)
        WA_DontCreateNativeAncestors,
%End
%If (Qt_4_4_0 -)
        WA_MacVariableSize,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeDesktop,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeDock,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeToolBar,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeMenu,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeUtility,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeSplash,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeDialog,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeDropDownMenu,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypePopupMenu,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeToolTip,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeNotification,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeCombo,
%End
%If (Qt_4_4_0 -)
        WA_X11NetWmWindowTypeDND,
%End
%If (Qt_4_5_0 -)
        WA_MacFrameworkScaled,
%End
%If (Qt_4_5_0 -)
        WA_TranslucentBackground,
%End
%If (Qt_4_6_0 -)
        WA_AcceptTouchEvents,
%End
%If (Qt_4_6_0 -)
        WA_TouchPadAcceptSingleTouchEvents,
%End
%If (Qt_4_6_2 - Qt_5_0_0)
        WA_MergeSoftkeys,
%End
%If (Qt_4_6_2 - Qt_5_0_0)
        WA_MergeSoftkeysRecursively,
%End
%If (Qt_4_7_0 -)
        WA_X11DoNotAcceptFocus,
%End
%If (Qt_4_7_2 - Qt_5_0_0)
        WA_LockPortraitOrientation,
%End
%If (Qt_4_7_2 - Qt_5_0_0)
        WA_LockLandscapeOrientation,
%End
%If (Qt_4_7_2 - Qt_5_0_0)
        WA_AutoOrientation,
%End
%If (Qt_4_8_0 -)
        WA_MacNoShadow,
%End
    };

    enum ImageConversionFlag
    {
        AutoColor,
        ColorOnly,
        MonoOnly,
        ThresholdAlphaDither,
        OrderedAlphaDither,
        DiffuseAlphaDither,
        DiffuseDither,
        OrderedDither,
        ThresholdDither,
        AutoDither,
        PreferDither,
        AvoidDither,
    };

    typedef QFlags<Qt::ImageConversionFlag> ImageConversionFlags;

    enum BGMode
    {
        TransparentMode,
        OpaqueMode,
    };

    enum Key
    {
        Key_Escape,
        Key_Tab,
        Key_Backtab,
        Key_Backspace,
        Key_Return,
        Key_Enter,
        Key_Insert,
        Key_Delete,
        Key_Pause,
        Key_Print,
        Key_SysReq,
        Key_Clear,
        Key_Home,
        Key_End,
        Key_Left,
        Key_Up,
        Key_Right,
        Key_Down,
        Key_PageUp,
        Key_PageDown,
        Key_Shift,
        Key_Control,
        Key_Meta,
        Key_Alt,
        Key_CapsLock,
        Key_NumLock,
        Key_ScrollLock,
        Key_F1,
        Key_F2,
        Key_F3,
        Key_F4,
        Key_F5,
        Key_F6,
        Key_F7,
        Key_F8,
        Key_F9,
        Key_F10,
        Key_F11,
        Key_F12,
        Key_F13,
        Key_F14,
        Key_F15,
        Key_F16,
        Key_F17,
        Key_F18,
        Key_F19,
        Key_F20,
        Key_F21,
        Key_F22,
        Key_F23,
        Key_F24,
        Key_F25,
        Key_F26,
        Key_F27,
        Key_F28,
        Key_F29,
        Key_F30,
        Key_F31,
        Key_F32,
        Key_F33,
        Key_F34,
        Key_F35,
        Key_Super_L,
        Key_Super_R,
        Key_Menu,
        Key_Hyper_L,
        Key_Hyper_R,
        Key_Help,
        Key_Direction_L,
        Key_Direction_R,
        Key_Space,
        Key_Any,
        Key_Exclam,
        Key_QuoteDbl,
        Key_NumberSign,
        Key_Dollar,
        Key_Percent,
        Key_Ampersand,
        Key_Apostrophe,
        Key_ParenLeft,
        Key_ParenRight,
        Key_Asterisk,
        Key_Plus,
        Key_Comma,
        Key_Minus,
        Key_Period,
        Key_Slash,
        Key_0,
        Key_1,
        Key_2,
        Key_3,
        Key_4,
        Key_5,
        Key_6,
        Key_7,
        Key_8,
        Key_9,
        Key_Colon,
        Key_Semicolon,
        Key_Less,
        Key_Equal,
        Key_Greater,
        Key_Question,
        Key_At,
        Key_A,
        Key_B,
        Key_C,
        Key_D,
        Key_E,
        Key_F,
        Key_G,
        Key_H,
        Key_I,
        Key_J,
        Key_K,
        Key_L,
        Key_M,
        Key_N,
        Key_O,
        Key_P,
        Key_Q,
        Key_R,
        Key_S,
        Key_T,
        Key_U,
        Key_V,
        Key_W,
        Key_X,
        Key_Y,
        Key_Z,
        Key_BracketLeft,
        Key_Backslash,
        Key_BracketRight,
        Key_AsciiCircum,
        Key_Underscore,
        Key_QuoteLeft,
        Key_BraceLeft,
        Key_Bar,
        Key_BraceRight,
        Key_AsciiTilde,
        Key_nobreakspace,
        Key_exclamdown,
        Key_cent,
        Key_sterling,
        Key_currency,
        Key_yen,
        Key_brokenbar,
        Key_section,
        Key_diaeresis,
        Key_copyright,
        Key_ordfeminine,
        Key_guillemotleft,
        Key_notsign,
        Key_hyphen,
        Key_registered,
        Key_macron,
        Key_degree,
        Key_plusminus,
        Key_twosuperior,
        Key_threesuperior,
        Key_acute,
        Key_mu,
        Key_paragraph,
        Key_periodcentered,
        Key_cedilla,
        Key_onesuperior,
        Key_masculine,
        Key_guillemotright,
        Key_onequarter,
        Key_onehalf,
        Key_threequarters,
        Key_questiondown,
        Key_Agrave,
        Key_Aacute,
        Key_Acircumflex,
        Key_Atilde,
        Key_Adiaeresis,
        Key_Aring,
        Key_AE,
        Key_Ccedilla,
        Key_Egrave,
        Key_Eacute,
        Key_Ecircumflex,
        Key_Ediaeresis,
        Key_Igrave,
        Key_Iacute,
        Key_Icircumflex,
        Key_Idiaeresis,
        Key_ETH,
        Key_Ntilde,
        Key_Ograve,
        Key_Oacute,
        Key_Ocircumflex,
        Key_Otilde,
        Key_Odiaeresis,
        Key_multiply,
        Key_Ooblique,
        Key_Ugrave,
        Key_Uacute,
        Key_Ucircumflex,
        Key_Udiaeresis,
        Key_Yacute,
        Key_THORN,
        Key_ssharp,
        Key_division,
        Key_ydiaeresis,
        Key_AltGr,
        Key_Multi_key,
        Key_Codeinput,
        Key_SingleCandidate,
        Key_MultipleCandidate,
        Key_PreviousCandidate,
        Key_Mode_switch,
        Key_Kanji,
        Key_Muhenkan,
        Key_Henkan,
        Key_Romaji,
        Key_Hiragana,
        Key_Katakana,
        Key_Hiragana_Katakana,
        Key_Zenkaku,
        Key_Hankaku,
        Key_Zenkaku_Hankaku,
        Key_Touroku,
        Key_Massyo,
        Key_Kana_Lock,
        Key_Kana_Shift,
        Key_Eisu_Shift,
        Key_Eisu_toggle,
        Key_Hangul,
        Key_Hangul_Start,
        Key_Hangul_End,
        Key_Hangul_Hanja,
        Key_Hangul_Jamo,
        Key_Hangul_Romaja,
        Key_Hangul_Jeonja,
        Key_Hangul_Banja,
        Key_Hangul_PreHanja,
        Key_Hangul_PostHanja,
        Key_Hangul_Special,
        Key_Dead_Grave,
        Key_Dead_Acute,
        Key_Dead_Circumflex,
        Key_Dead_Tilde,
        Key_Dead_Macron,
        Key_Dead_Breve,
        Key_Dead_Abovedot,
        Key_Dead_Diaeresis,
        Key_Dead_Abovering,
        Key_Dead_Doubleacute,
        Key_Dead_Caron,
        Key_Dead_Cedilla,
        Key_Dead_Ogonek,
        Key_Dead_Iota,
        Key_Dead_Voiced_Sound,
        Key_Dead_Semivoiced_Sound,
        Key_Dead_Belowdot,
        Key_Dead_Hook,
        Key_Dead_Horn,
        Key_Back,
        Key_Forward,
        Key_Stop,
        Key_Refresh,
        Key_VolumeDown,
        Key_VolumeMute,
        Key_VolumeUp,
        Key_BassBoost,
        Key_BassUp,
        Key_BassDown,
        Key_TrebleUp,
        Key_TrebleDown,
        Key_MediaPlay,
        Key_MediaStop,
        Key_MediaPrevious,
        Key_MediaNext,
        Key_MediaRecord,
        Key_HomePage,
        Key_Favorites,
        Key_Search,
        Key_Standby,
        Key_OpenUrl,
        Key_LaunchMail,
        Key_LaunchMedia,
        Key_Launch0,
        Key_Launch1,
        Key_Launch2,
        Key_Launch3,
        Key_Launch4,
        Key_Launch5,
        Key_Launch6,
        Key_Launch7,
        Key_Launch8,
        Key_Launch9,
        Key_LaunchA,
        Key_LaunchB,
        Key_LaunchC,
        Key_LaunchD,
        Key_LaunchE,
        Key_LaunchF,
        Key_MediaLast,
        Key_Select,
        Key_Yes,
        Key_No,
        Key_Context1,
        Key_Context2,
        Key_Context3,
        Key_Context4,
        Key_Call,
        Key_Hangup,
        Key_Flip,
        Key_unknown,
%If (Qt_4_2_0 -)
        Key_Execute,
%End
%If (Qt_4_2_0 -)
        Key_Printer,
%End
%If (Qt_4_2_0 -)
        Key_Play,
%End
%If (Qt_4_2_0 -)
        Key_Sleep,
%End
%If (Qt_4_2_0 -)
        Key_Zoom,
%End
%If (Qt_4_2_0 -)
        Key_Cancel,
%End
%If (Qt_4_6_0 -)
        Key_MonBrightnessUp,
%End
%If (Qt_4_6_0 -)
        Key_MonBrightnessDown,
%End
%If (Qt_4_6_0 -)
        Key_KeyboardLightOnOff,
%End
%If (Qt_4_6_0 -)
        Key_KeyboardBrightnessUp,
%End
%If (Qt_4_6_0 -)
        Key_KeyboardBrightnessDown,
%End
%If (Qt_4_6_0 -)
        Key_PowerOff,
%End
%If (Qt_4_6_0 -)
        Key_WakeUp,
%End
%If (Qt_4_6_0 -)
        Key_Eject,
%End
%If (Qt_4_6_0 -)
        Key_ScreenSaver,
%End
%If (Qt_4_6_0 -)
        Key_WWW,
%End
%If (Qt_4_6_0 -)
        Key_Memo,
%End
%If (Qt_4_6_0 -)
        Key_LightBulb,
%End
%If (Qt_4_6_0 -)
        Key_Shop,
%End
%If (Qt_4_6_0 -)
        Key_History,
%End
%If (Qt_4_6_0 -)
        Key_AddFavorite,
%End
%If (Qt_4_6_0 -)
        Key_HotLinks,
%End
%If (Qt_4_6_0 -)
        Key_BrightnessAdjust,
%End
%If (Qt_4_6_0 -)
        Key_Finance,
%End
%If (Qt_4_6_0 -)
        Key_Community,
%End
%If (Qt_4_6_0 -)
        Key_AudioRewind,
%End
%If (Qt_4_6_0 -)
        Key_BackForward,
%End
%If (Qt_4_6_0 -)
        Key_ApplicationLeft,
%End
%If (Qt_4_6_0 -)
        Key_ApplicationRight,
%End
%If (Qt_4_6_0 -)
        Key_Book,
%End
%If (Qt_4_6_0 -)
        Key_CD,
%End
%If (Qt_4_6_0 -)
        Key_Calculator,
%End
%If (Qt_4_6_0 -)
        Key_ToDoList,
%End
%If (Qt_4_6_0 -)
        Key_ClearGrab,
%End
%If (Qt_4_6_0 -)
        Key_Close,
%End
%If (Qt_4_6_0 -)
        Key_Copy,
%End
%If (Qt_4_6_0 -)
        Key_Cut,
%End
%If (Qt_4_6_0 -)
        Key_Display,
%End
%If (Qt_4_6_0 -)
        Key_DOS,
%End
%If (Qt_4_6_0 -)
        Key_Documents,
%End
%If (Qt_4_6_0 -)
        Key_Excel,
%End
%If (Qt_4_6_0 -)
        Key_Explorer,
%End
%If (Qt_4_6_0 -)
        Key_Game,
%End
%If (Qt_4_6_0 -)
        Key_Go,
%End
%If (Qt_4_6_0 -)
        Key_iTouch,
%End
%If (Qt_4_6_0 -)
        Key_LogOff,
%End
%If (Qt_4_6_0 -)
        Key_Market,
%End
%If (Qt_4_6_0 -)
        Key_Meeting,
%End
%If (Qt_4_6_0 -)
        Key_MenuKB,
%End
%If (Qt_4_6_0 -)
        Key_MenuPB,
%End
%If (Qt_4_6_0 -)
        Key_MySites,
%End
%If (Qt_4_6_0 -)
        Key_News,
%End
%If (Qt_4_6_0 -)
        Key_OfficeHome,
%End
%If (Qt_4_6_0 -)
        Key_Option,
%End
%If (Qt_4_6_0 -)
        Key_Paste,
%End
%If (Qt_4_6_0 -)
        Key_Phone,
%End
%If (Qt_4_6_0 -)
        Key_Calendar,
%End
%If (Qt_4_6_0 -)
        Key_Reply,
%End
%If (Qt_4_6_0 -)
        Key_Reload,
%End
%If (Qt_4_6_0 -)
        Key_RotateWindows,
%End
%If (Qt_4_6_0 -)
        Key_RotationPB,
%End
%If (Qt_4_6_0 -)
        Key_RotationKB,
%End
%If (Qt_4_6_0 -)
        Key_Save,
%End
%If (Qt_4_6_0 -)
        Key_Send,
%End
%If (Qt_4_6_0 -)
        Key_Spell,
%End
%If (Qt_4_6_0 -)
        Key_SplitScreen,
%End
%If (Qt_4_6_0 -)
        Key_Support,
%End
%If (Qt_4_6_0 -)
        Key_TaskPane,
%End
%If (Qt_4_6_0 -)
        Key_Terminal,
%End
%If (Qt_4_6_0 -)
        Key_Tools,
%End
%If (Qt_4_6_0 -)
        Key_Travel,
%End
%If (Qt_4_6_0 -)
        Key_Video,
%End
%If (Qt_4_6_0 -)
        Key_Word,
%End
%If (Qt_4_6_0 -)
        Key_Xfer,
%End
%If (Qt_4_6_0 -)
        Key_ZoomIn,
%End
%If (Qt_4_6_0 -)
        Key_ZoomOut,
%End
%If (Qt_4_6_0 -)
        Key_Away,
%End
%If (Qt_4_6_0 -)
        Key_Messenger,
%End
%If (Qt_4_6_0 -)
        Key_WebCam,
%End
%If (Qt_4_6_0 -)
        Key_MailForward,
%End
%If (Qt_4_6_0 -)
        Key_Pictures,
%End
%If (Qt_4_6_0 -)
        Key_Music,
%End
%If (Qt_4_6_0 -)
        Key_Battery,
%End
%If (Qt_4_6_0 -)
        Key_Bluetooth,
%End
%If (Qt_4_6_0 -)
        Key_WLAN,
%End
%If (Qt_4_6_0 -)
        Key_UWB,
%End
%If (Qt_4_6_0 -)
        Key_AudioForward,
%End
%If (Qt_4_6_0 -)
        Key_AudioRepeat,
%End
%If (Qt_4_6_0 -)
        Key_AudioRandomPlay,
%End
%If (Qt_4_6_0 -)
        Key_Subtitle,
%End
%If (Qt_4_6_0 -)
        Key_AudioCycleTrack,
%End
%If (Qt_4_6_0 -)
        Key_Time,
%End
%If (Qt_4_6_0 -)
        Key_Hibernate,
%End
%If (Qt_4_6_0 -)
        Key_View,
%End
%If (Qt_4_6_0 -)
        Key_TopMenu,
%End
%If (Qt_4_6_0 -)
        Key_PowerDown,
%End
%If (Qt_4_6_0 -)
        Key_Suspend,
%End
%If (Qt_4_6_0 -)
        Key_ContrastAdjust,
%End
%If (Qt_4_7_0 -)
        Key_MediaPause,
%End
%If (Qt_4_7_0 -)
        Key_MediaTogglePlayPause,
%End
%If (Qt_4_7_0 -)
        Key_LaunchG,
%End
%If (Qt_4_7_0 -)
        Key_LaunchH,
%End
%If (Qt_4_7_0 -)
        Key_ToggleCallHangup,
%End
%If (Qt_4_7_0 -)
        Key_VoiceDial,
%End
%If (Qt_4_7_0 -)
        Key_LastNumberRedial,
%End
%If (Qt_4_7_0 -)
        Key_Camera,
%End
%If (Qt_4_7_0 -)
        Key_CameraFocus,
%End
%If (Qt_5_0_0 -)
        Key_TouchpadToggle,
%End
%If (Qt_5_0_0 -)
        Key_TouchpadOn,
%End
%If (Qt_5_0_0 -)
        Key_TouchpadOff,
%End
    };

    enum ArrowType
    {
        NoArrow,
        UpArrow,
        DownArrow,
        LeftArrow,
        RightArrow,
    };

    enum PenStyle
    {
        NoPen,
        SolidLine,
        DashLine,
        DotLine,
        DashDotLine,
        DashDotDotLine,
        CustomDashLine,
        MPenStyle,
    };

    enum PenCapStyle
    {
        FlatCap,
        SquareCap,
        RoundCap,
        MPenCapStyle,
    };

    enum PenJoinStyle
    {
        MiterJoin,
        BevelJoin,
        RoundJoin,
        MPenJoinStyle,
%If (Qt_4_2_0 -)
        SvgMiterJoin,
%End
    };

    enum BrushStyle
    {
        NoBrush,
        SolidPattern,
        Dense1Pattern,
        Dense2Pattern,
        Dense3Pattern,
        Dense4Pattern,
        Dense5Pattern,
        Dense6Pattern,
        Dense7Pattern,
        HorPattern,
        VerPattern,
        CrossPattern,
        BDiagPattern,
        FDiagPattern,
        DiagCrossPattern,
        LinearGradientPattern,
        RadialGradientPattern,
        ConicalGradientPattern,
        TexturePattern,
    };

    enum UIEffect
    {
        UI_General,
        UI_AnimateMenu,
        UI_FadeMenu,
        UI_AnimateCombo,
        UI_AnimateTooltip,
        UI_FadeTooltip,
        UI_AnimateToolBox,
    };

    enum CursorShape
    {
        ArrowCursor,
        UpArrowCursor,
        CrossCursor,
        WaitCursor,
        IBeamCursor,
        SizeVerCursor,
        SizeHorCursor,
        SizeBDiagCursor,
        SizeFDiagCursor,
        SizeAllCursor,
        BlankCursor,
        SplitVCursor,
        SplitHCursor,
        PointingHandCursor,
        ForbiddenCursor,
%If (Qt_4_2_0 -)
        OpenHandCursor,
%End
%If (Qt_4_2_0 -)
        ClosedHandCursor,
%End
        WhatsThisCursor,
        BusyCursor,
        LastCursor,
        BitmapCursor,
%If (Qt_4_1_3 -)
        CustomCursor,
%End
%If (Qt_4_7_0 -)
        DragCopyCursor,
%End
%If (Qt_4_7_0 -)
        DragMoveCursor,
%End
%If (Qt_4_7_0 -)
        DragLinkCursor,
%End
    };

    enum TextFormat
    {
        PlainText,
        RichText,
        AutoText,
%If (- Qt_5_0_0)
        LogText,
%End
    };

    enum AspectRatioMode
    {
        IgnoreAspectRatio,
        KeepAspectRatio,
        KeepAspectRatioByExpanding,
    };

%If (- Qt_5_0_0)

    enum AnchorAttribute
    {
        AnchorName,
        AnchorHref,
    };

%End

    enum DockWidgetArea
    {
        LeftDockWidgetArea,
        RightDockWidgetArea,
        TopDockWidgetArea,
        BottomDockWidgetArea,
        DockWidgetArea_Mask,
        AllDockWidgetAreas,
%If (Qt_4_2_0 -)
        NoDockWidgetArea,
%End
    };

    typedef QFlags<Qt::DockWidgetArea> DockWidgetAreas;
%If (Qt_5_0_0 -)

    enum TimerType
    {
        PreciseTimer,
        CoarseTimer,
        VeryCoarseTimer,
    };

%End

    enum ToolBarArea
    {
        LeftToolBarArea,
        RightToolBarArea,
        TopToolBarArea,
        BottomToolBarArea,
        ToolBarArea_Mask,
        AllToolBarAreas,
%If (Qt_4_2_0 -)
        NoToolBarArea,
%End
    };

    typedef QFlags<Qt::ToolBarArea> ToolBarAreas;

    enum DateFormat
    {
        TextDate,
        ISODate,
        LocalDate,
%If (Qt_4_2_0 -)
        SystemLocaleDate,
%End
%If (Qt_4_2_0 -)
        LocaleDate,
%End
%If (Qt_4_4_0 -)
        SystemLocaleShortDate,
%End
%If (Qt_4_4_0 -)
        SystemLocaleLongDate,
%End
%If (Qt_4_4_0 -)
        DefaultLocaleShortDate,
%End
%If (Qt_4_4_0 -)
        DefaultLocaleLongDate,
%End
    };

    enum TimeSpec
    {
        LocalTime,
        UTC,
%If (Qt_4_4_0 -)
        OffsetFromUTC,
%End
    };

    enum DayOfWeek
    {
        Monday,
        Tuesday,
        Wednesday,
        Thursday,
        Friday,
        Saturday,
        Sunday,
    };

    enum ScrollBarPolicy
    {
        ScrollBarAsNeeded,
        ScrollBarAlwaysOff,
        ScrollBarAlwaysOn,
    };

    enum CaseSensitivity
    {
        CaseInsensitive,
        CaseSensitive,
    };

    enum Corner
    {
        TopLeftCorner,
        TopRightCorner,
        BottomLeftCorner,
        BottomRightCorner,
    };

    enum ConnectionType
    {
        AutoConnection,
        DirectConnection,
        QueuedConnection,
%If (- Qt_5_0_0)
        AutoCompatConnection,
%End
%If (Qt_4_3_0 -)
        BlockingQueuedConnection,
%End
%If (Qt_4_6_0 -)
        UniqueConnection,
%End
    };

    enum ShortcutContext
    {
        WidgetShortcut,
        WindowShortcut,
        ApplicationShortcut,
%If (Qt_4_4_0 -)
        WidgetWithChildrenShortcut,
%End
    };

    enum FillRule
    {
        OddEvenFill,
        WindingFill,
    };

    enum ClipOperation
    {
        NoClip,
        ReplaceClip,
        IntersectClip,
%If (- Qt_5_0_0)
        UniteClip,
%End
    };

    enum TransformationMode
    {
        FastTransformation,
        SmoothTransformation,
    };

    enum FocusReason
    {
        MouseFocusReason,
        TabFocusReason,
        BacktabFocusReason,
        ActiveWindowFocusReason,
        PopupFocusReason,
        ShortcutFocusReason,
        MenuBarFocusReason,
        OtherFocusReason,
        NoFocusReason,
    };

    enum ContextMenuPolicy
    {
        NoContextMenu,
%If (Qt_4_2_0 -)
        PreventContextMenu,
%End
        DefaultContextMenu,
        ActionsContextMenu,
        CustomContextMenu,
    };

    enum InputMethodQuery
    {
        ImMicroFocus,
        ImFont,
        ImCursorPosition,
        ImSurroundingText,
        ImCurrentSelection,
%If (Qt_4_6_0 -)
        ImMaximumTextLength,
%End
%If (Qt_4_6_0 -)
        ImAnchorPosition,
%End
%If (Qt_5_0_0 -)
        ImEnabled,
%End
%If (Qt_5_0_0 -)
        ImCursorRectangle,
%End
%If (Qt_5_0_0 -)
        ImHints,
%End
%If (Qt_5_0_0 -)
        ImPreferredLanguage,
%End
%If (Qt_5_0_0 -)
        ImPlatformData,
%End
%If (Qt_5_0_0 -)
        ImQueryInput,
%End
%If (Qt_5_0_0 -)
        ImQueryAll,
%End
    };

%If (Qt_5_0_0 -)
    typedef QFlags<Qt::InputMethodQuery> InputMethodQueries;
%End

    enum ToolButtonStyle
    {
        ToolButtonIconOnly,
        ToolButtonTextOnly,
        ToolButtonTextBesideIcon,
        ToolButtonTextUnderIcon,
%If (Qt_4_6_0 -)
        ToolButtonFollowStyle,
%End
    };

    enum LayoutDirection
    {
        LeftToRight,
        RightToLeft,
%If (Qt_4_7_0 -)
        LayoutDirectionAuto,
%End
    };

    enum DropAction
    {
        CopyAction,
        MoveAction,
        LinkAction,
        ActionMask,
        TargetMoveAction,
        IgnoreAction,
    };

    typedef QFlags<Qt::DropAction> DropActions;

    enum CheckState
    {
        Unchecked,
        PartiallyChecked,
        Checked,
    };

    enum ItemDataRole
    {
        DisplayRole,
        DecorationRole,
        EditRole,
        ToolTipRole,
        StatusTipRole,
        WhatsThisRole,
        FontRole,
        TextAlignmentRole,
%If (Qt_4_2_0 -)
        BackgroundRole,
%End
        BackgroundColorRole,
%If (Qt_4_2_0 -)
        ForegroundRole,
%End
        TextColorRole,
        CheckStateRole,
        AccessibleTextRole,
        AccessibleDescriptionRole,
        SizeHintRole,
%If (Qt_4_8_0 -)
        InitialSortOrderRole,
%End
        UserRole,
    };

    enum ItemFlag
    {
%If (Qt_4_4_0 -)
        NoItemFlags,
%End
        ItemIsSelectable,
        ItemIsEditable,
        ItemIsDragEnabled,
        ItemIsDropEnabled,
        ItemIsUserCheckable,
        ItemIsEnabled,
        ItemIsTristate,
    };

    typedef QFlags<Qt::ItemFlag> ItemFlags;

    enum MatchFlag
    {
        MatchExactly,
%If (Qt_4_2_0 -)
        MatchFixedString,
%End
        MatchContains,
        MatchStartsWith,
        MatchEndsWith,
        MatchRegExp,
        MatchWildcard,
        MatchCaseSensitive,
        MatchWrap,
        MatchRecursive,
    };

    typedef QFlags<Qt::MatchFlag> MatchFlags;
%If (Qt_5_0_0 -)
    typedef void *HANDLE;
%End
%If (- Qt_5_0_0)
%If (WS_WIN || WS_MACX)
    typedef void *HANDLE;
%End
%End
%If (- Qt_5_0_0)
%If (WS_X11)
    typedef unsigned long HANDLE;
%End
%End
%If (PyQt_Deprecated_5_0)
    typedef Qt::WindowFlags WFlags;
%End

    enum WindowModality
    {
        NonModal,
        WindowModal,
        ApplicationModal,
    };

%If (Qt_4_2_0 -)

    enum ApplicationAttribute
    {
        AA_ImmediateWidgetCreation,
%If (Qt_4_3_0 -)
        AA_MSWindowsUseDirect3DByDefault,
%End
%If (Qt_4_4_0 -)
        AA_DontShowIconsInMenus,
%End
%If (Qt_4_4_0 -)
        AA_NativeWindows,
%End
%If (Qt_4_4_1 -)
        AA_DontCreateNativeWidgetSiblings,
%End
%If (Qt_4_5_0 -)
        AA_MacPluginApplication,
%End
%If (Qt_4_6_0 -)
        AA_DontUseNativeMenuBar,
%End
%If (Qt_4_6_0 -)
        AA_MacDontSwapCtrlAndMeta,
%End
%If (Qt_4_6_1 - Qt_5_0_0)
        AA_S60DontConstructApplicationPanes,
%End
%If (Qt_4_7_2 - Qt_5_0_0)
        AA_S60DisablePartialScreenInputMode,
%End
%If (Qt_4_8_0 -)
        AA_X11InitThreads,
%End
%If (Qt_4_8_0 - Qt_5_0_0)
        AA_CaptureMultimediaKeys,
%End
%If (Qt_5_0_0 -)
        AA_Use96Dpi,
%End
%If (Qt_5_0_0 -)
        AA_SynthesizeTouchForUnhandledMouseEvents,
%End
%If (Qt_5_0_0 -)
        AA_SynthesizeMouseForUnhandledTouchEvents,
%End
    };

%End
%If (Qt_4_2_0 -)

    enum ItemSelectionMode
    {
        ContainsItemShape,
        IntersectsItemShape,
        ContainsItemBoundingRect,
        IntersectsItemBoundingRect,
    };

%End
%If (Qt_4_2_0 -)

    enum TextInteractionFlag
    {
        NoTextInteraction,
        TextSelectableByMouse,
        TextSelectableByKeyboard,
        LinksAccessibleByMouse,
        LinksAccessibleByKeyboard,
        TextEditable,
        TextEditorInteraction,
        TextBrowserInteraction,
    };

%End
%If (Qt_4_2_0 -)
    typedef QFlags<Qt::TextInteractionFlag> TextInteractionFlags;
%End
%If (Qt_4_3_0 -)

    enum MaskMode
    {
        MaskInColor,
        MaskOutColor,
    };

%End
%If (Qt_4_3_0 -)

    enum Axis
    {
        XAxis,
        YAxis,
        ZAxis,
    };

%End
%If (Qt_4_3_0 -)

    enum EventPriority
    {
        HighEventPriority,
        NormalEventPriority,
        LowEventPriority,
    };

%End
%If (Qt_4_4_0 -)

    enum SizeMode
    {
        AbsoluteSize,
        RelativeSize,
    };

%End
%If (Qt_4_4_0 -)

    enum SizeHint
    {
        MinimumSize,
        PreferredSize,
        MaximumSize,
        MinimumDescent,
    };

%End
%If (Qt_4_4_0 -)

    enum WindowFrameSection
    {
        NoSection,
        LeftSection,
        TopLeftSection,
        TopSection,
        TopRightSection,
        RightSection,
        BottomRightSection,
        BottomSection,
        BottomLeftSection,
        TitleBarArea,
    };

%End
%If (Qt_4_6_0 -)

    enum TileRule
    {
        StretchTile,
        RepeatTile,
        RoundTile,
    };

%End
%If (Qt_4_6_0 -)

    enum InputMethodHint
    {
        ImhNone,
        ImhHiddenText,
        ImhNoAutoUppercase,
        ImhPreferNumbers,
        ImhPreferUppercase,
        ImhPreferLowercase,
        ImhNoPredictiveText,
        ImhDigitsOnly,
        ImhFormattedNumbersOnly,
        ImhUppercaseOnly,
        ImhLowercaseOnly,
        ImhDialableCharactersOnly,
        ImhEmailCharactersOnly,
        ImhUrlCharactersOnly,
        ImhExclusiveInputMask,
%If (Qt_5_0_0 -)
        ImhSensitiveData,
%End
%If (Qt_5_0_0 -)
        ImhDate,
%End
%If (Qt_5_0_0 -)
        ImhTime,
%End
%If (Qt_5_0_0 -)
        ImhPreferLatin,
%End
%If (Qt_5_0_0 -)
        ImhLatinOnly,
%End
    };

%End
%If (Qt_4_6_0 -)
    typedef QFlags<Qt::InputMethodHint> InputMethodHints;
%End
%If (Qt_4_6_0 -)

    enum AnchorPoint
    {
        AnchorLeft,
        AnchorHorizontalCenter,
        AnchorRight,
        AnchorTop,
        AnchorVerticalCenter,
        AnchorBottom,
    };

%End
%If (Qt_4_6_0 -)

    enum CoordinateSystem
    {
        DeviceCoordinates,
        LogicalCoordinates,
    };

%End
%If (Qt_4_6_0 -)

    enum TouchPointState
    {
        TouchPointPressed,
        TouchPointMoved,
        TouchPointStationary,
        TouchPointReleased,
    };

%End
%If (Qt_4_6_0 -)
    typedef QFlags<Qt::TouchPointState> TouchPointStates;
%End
%If (Qt_4_6_0 -)

    enum GestureState
    {
        GestureStarted,
        GestureUpdated,
        GestureFinished,
        GestureCanceled,
    };

%End
%If (Qt_4_6_0 -)

    enum GestureType
    {
        TapGesture,
        TapAndHoldGesture,
        PanGesture,
        PinchGesture,
        SwipeGesture,
        CustomGesture,
    };

%End
%If (Qt_4_6_0 -)

    enum GestureFlag
    {
        DontStartGestureOnChildren,
        ReceivePartialGestures,
%If (Qt_4_7_0 -)
        IgnoredGesturesPropagateToParent,
%End
    };

%End
%If (Qt_4_6_0 -)
    typedef QFlags<Qt::GestureFlag> GestureFlags;
%End
%If (Qt_4_6_0 -)

    enum NavigationMode
    {
        NavigationModeNone,
        NavigationModeKeypadTabOrder,
        NavigationModeKeypadDirectional,
        NavigationModeCursorAuto,
        NavigationModeCursorForceVisible,
    };

%End
%If (Qt_4_8_0 -)

    enum CursorMoveStyle
    {
        LogicalMoveStyle,
        VisualMoveStyle,
    };

%End
%If (Qt_5_0_0 -)

    enum ScreenOrientation
    {
        PrimaryOrientation,
        PortraitOrientation,
        LandscapeOrientation,
        InvertedPortraitOrientation,
        InvertedLandscapeOrientation,
    };

%End
%If (Qt_5_0_0 -)
    typedef QFlags<Qt::ScreenOrientation> ScreenOrientations;
%End
%If (Qt_5_0_0 -)

    enum FindChildOption
    {
        FindDirectChildrenOnly,
        FindChildrenRecursively,
    };

%End
%If (Qt_5_0_0 -)
    typedef QFlags<Qt::FindChildOption> FindChildOptions;
%End
%If (Qt_5_0_0 -)

    enum WhiteSpaceMode
    {
        WhiteSpaceNormal,
        WhiteSpacePre,
        WhiteSpaceNoWrap,
        WhiteSpaceModeUndefined,
    };

%End
%If (Qt_5_0_0 -)

    enum HitTestAccuracy
    {
        ExactHit,
        FuzzyHit,
    };

%End
};

%If (Py_v3)
// Mapped type for QSet<Qt::DayOfWeek> in Python v3.
%MappedType QSet<Qt::DayOfWeek> /DocType="set-of-Qt.DayOfWeek"/
{
%TypeHeaderCode
#include <qnamespace.h>
#include <qset.h>
%End

%ConvertFromTypeCode
    // Create the set.
    PyObject *s;

    if ((s = PySet_New(NULL)) == NULL)
        return NULL;

    // Set the set elements.
    QSet<Qt::DayOfWeek>::const_iterator it = sipCpp->constBegin();
    QSet<Qt::DayOfWeek>::const_iterator end = sipCpp->constEnd();

    while (it != end)
    {
        PyObject *el_obj;

        if ((el_obj = sipConvertFromEnum(*it, sipType_Qt_DayOfWeek)) == NULL)
        {
            Py_DECREF(s);

            return NULL;
        }

        PySet_Add(s, el_obj);

        ++it;
    }

    return s;
%End

%ConvertToTypeCode
    PyObject *it = PyObject_GetIter(sipPy), *itm;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (it == NULL)
            return 0;

        while ((itm = PyIter_Next(it)) != NULL)
        {
            int ok = sipCanConvertToEnum(itm, sipType_Qt_DayOfWeek);

            Py_DECREF(itm);

            if (!ok)
            {
                Py_DECREF(it);
                return 0;
            }
        }

        Py_DECREF(it);
        return 1;
    }

    if (it == NULL)
    {
        *sipIsErr = 1;
        return 0;
    }

    QSet<Qt::DayOfWeek> *qs = new QSet<Qt::DayOfWeek>;

    while ((itm = PyIter_Next(it)) != NULL)
    {
        long l = SIPLong_AsLong(itm);

        Py_DECREF(itm);

        qs->insert(static_cast<Qt::DayOfWeek>(l));
    }

    Py_DECREF(it);

    *sipCppPtr = qs;

    return sipGetState(sipTransferObj);
%End
};
%End
%If (!Py_v3)
// Mapped type for QSet<Qt::DayOfWeek> in Python v2.
%MappedType QSet<Qt::DayOfWeek> /DocType="list-of-Qt.DayOfWeek"/
{
%TypeHeaderCode
#include <qnamespace.h>
#include <qset.h>
%End

%ConvertFromTypeCode
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    QSet<Qt::DayOfWeek>::const_iterator it = sipCpp->constBegin();

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *el_obj;

        if ((el_obj = sipConvertFromEnum(*it, sipType_Qt_DayOfWeek)) == NULL)
        {
            Py_DECREF(l);

            return NULL;
        }

        PyList_SET_ITEM(l, i, el_obj);

        ++it;
    }

    return l;
%End

%ConvertToTypeCode
    PyObject *it = PyObject_GetIter(sipPy), *itm;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (it == NULL)
            return 0;

        while ((itm = PyIter_Next(it)) != NULL)
        {
            int ok = sipCanConvertToEnum(itm, sipType_Qt_DayOfWeek);

            Py_DECREF(itm);

            if (!ok)
            {
                Py_DECREF(it);
                return 0;
            }
        }

        Py_DECREF(it);
        return 1;
    }

    if (it == NULL)
    {
        *sipIsErr = 1;
        return 0;
    }

    QSet<Qt::DayOfWeek> *qs = new QSet<Qt::DayOfWeek>;

    while ((itm = PyIter_Next(it)) != NULL)
    {
        long l = SIPLong_AsLong(itm);

        Py_DECREF(itm);

        qs->insert(static_cast<Qt::DayOfWeek>(l));
    }

    Py_DECREF(it);

    *sipCppPtr = qs;

    return sipGetState(sipTransferObj);
%End
};
%End
QFlags<Qt::MouseButton> operator|(Qt::MouseButton f1, QFlags<Qt::MouseButton> f2);
QFlags<Qt::Orientation> operator|(Qt::Orientation f1, QFlags<Qt::Orientation> f2);
QFlags<Qt::KeyboardModifier> operator|(Qt::KeyboardModifier f1, QFlags<Qt::KeyboardModifier> f2);
QFlags<Qt::WindowType> operator|(Qt::WindowType f1, QFlags<Qt::WindowType> f2);
QFlags<Qt::AlignmentFlag> operator|(Qt::AlignmentFlag f1, QFlags<Qt::AlignmentFlag> f2);
QFlags<Qt::ImageConversionFlag> operator|(Qt::ImageConversionFlag f1, QFlags<Qt::ImageConversionFlag> f2);
QFlags<Qt::DockWidgetArea> operator|(Qt::DockWidgetArea f1, QFlags<Qt::DockWidgetArea> f2);
QFlags<Qt::ToolBarArea> operator|(Qt::ToolBarArea f1, QFlags<Qt::ToolBarArea> f2);
QFlags<Qt::WindowState> operator|(Qt::WindowState f1, QFlags<Qt::WindowState> f2);
QFlags<Qt::DropAction> operator|(Qt::DropAction f1, QFlags<Qt::DropAction> f2);
QFlags<Qt::ItemFlag> operator|(Qt::ItemFlag f1, QFlags<Qt::ItemFlag> f2);
QFlags<Qt::MatchFlag> operator|(Qt::MatchFlag f1, QFlags<Qt::MatchFlag> f2);
%If (Qt_4_2_0 -)
QFlags<Qt::TextInteractionFlag> operator|(Qt::TextInteractionFlag f1, QFlags<Qt::TextInteractionFlag> f2);
%End
%If (Qt_4_6_0 -)
QFlags<Qt::InputMethodHint> operator|(Qt::InputMethodHint f1, QFlags<Qt::InputMethodHint> f2);
%End
%If (Qt_4_6_0 -)
QFlags<Qt::TouchPointState> operator|(Qt::TouchPointState f1, QFlags<Qt::TouchPointState> f2);
%End
%If (Qt_4_6_0 -)
QFlags<Qt::GestureFlag> operator|(Qt::GestureFlag f1, QFlags<Qt::GestureFlag> f2);
%End
%If (Qt_5_0_0 -)
QFlags<Qt::ScreenOrientation> operator|(Qt::ScreenOrientation f1, QFlags<Qt::ScreenOrientation> f2);
%End
%If (Qt_5_0_0 -)
QFlags<Qt::InputMethodQuery> operator|(Qt::InputMethodQuery f1, QFlags<Qt::InputMethodQuery> f2);
%End
