81 virtual void unpolish(
QWidget *);
88 virtual QRect itemTextRect(
const QFontMetrics &fm,
const QRect &
r,
89 int flags,
bool enabled,
94 virtual void drawItemText(
QPainter *painter,
const QRect &rect,
95 int flags,
const QPalette &pal,
bool enabled,
98 virtual void drawItemPixmap(
QPainter *painter,
const QRect &rect,
99 int alignment,
const QPixmap &pixmap)
const;
101 virtual QPalette standardPalette()
const;
104 State_None = 0x00000000,
106 State_Default = State_None,
108 State_Enabled = 0x00000001,
109 State_Raised = 0x00000002,
110 State_Sunken = 0x00000004,
111 State_Off = 0x00000008,
112 State_NoChange = 0x00000010,
113 State_On = 0x00000020,
114 State_DownArrow = 0x00000040,
115 State_Horizontal = 0x00000080,
116 State_HasFocus = 0x00000100,
117 State_Top = 0x00000200,
118 State_Bottom = 0x00000400,
119 State_FocusAtBorder = 0x00000800,
120 State_AutoRaise = 0x00001000,
121 State_MouseOver = 0x00002000,
122 State_UpArrow = 0x00004000,
123 State_Selected = 0x00008000,
124 State_Active = 0x00010000,
125 State_Window = 0x00020000,
126 State_Open = 0x00040000,
127 State_Children = 0x00080000,
128 State_Item = 0x00100000,
129 State_Sibling = 0x00200000,
130 State_Editing = 0x00400000,
131 State_KeyboardFocusChange = 0x00800000,
132 #ifdef QT_KEYPAD_NAVIGATION
133 State_HasEditFocus = 0x01000000,
135 State_ReadOnly = 0x02000000,
136 State_Small = 0x04000000,
137 State_Mini = 0x08000000
139 Q_DECLARE_FLAGS(
State, StateFlag)
142 typedef State SFlags;
160 PE_FrameStatusBarItem = PE_FrameStatusBar,
181 PE_IndicatorItemViewItemCheck = PE_IndicatorViewItemCheck,
212 PE_CustomBase = 0xf000000
215 virtual void drawPrimitive(PrimitiveElement pe,
const QStyleOption *opt,
QPainter *
p,
283 CE_CustomBase = 0xf0000000
286 virtual void drawControl(ControlElement element,
const QStyleOption *opt,
QPainter *
p,
336 SE_ItemViewItemCheckIndicator = SE_ViewItemCheckIndicator,
379 SE_CustomBase = 0xf0000000
382 virtual QRect subElementRect(SubElement subElement,
const QStyleOption *option,
383 const QWidget *widget = 0)
const = 0;
399 CC_CustomBase = 0xf0000000
403 SC_None = 0x00000000,
405 SC_ScrollBarAddLine = 0x00000001,
406 SC_ScrollBarSubLine = 0x00000002,
407 SC_ScrollBarAddPage = 0x00000004,
408 SC_ScrollBarSubPage = 0x00000008,
409 SC_ScrollBarFirst = 0x00000010,
410 SC_ScrollBarLast = 0x00000020,
411 SC_ScrollBarSlider = 0x00000040,
412 SC_ScrollBarGroove = 0x00000080,
414 SC_SpinBoxUp = 0x00000001,
415 SC_SpinBoxDown = 0x00000002,
416 SC_SpinBoxFrame = 0x00000004,
417 SC_SpinBoxEditField = 0x00000008,
419 SC_ComboBoxFrame = 0x00000001,
420 SC_ComboBoxEditField = 0x00000002,
421 SC_ComboBoxArrow = 0x00000004,
422 SC_ComboBoxListBoxPopup = 0x00000008,
424 SC_SliderGroove = 0x00000001,
425 SC_SliderHandle = 0x00000002,
426 SC_SliderTickmarks = 0x00000004,
428 SC_ToolButton = 0x00000001,
429 SC_ToolButtonMenu = 0x00000002,
431 SC_TitleBarSysMenu = 0x00000001,
432 SC_TitleBarMinButton = 0x00000002,
433 SC_TitleBarMaxButton = 0x00000004,
434 SC_TitleBarCloseButton = 0x00000008,
435 SC_TitleBarNormalButton = 0x00000010,
436 SC_TitleBarShadeButton = 0x00000020,
437 SC_TitleBarUnshadeButton = 0x00000040,
438 SC_TitleBarContextHelpButton = 0x00000080,
439 SC_TitleBarLabel = 0x00000100,
441 SC_Q3ListView = 0x00000001,
442 SC_Q3ListViewBranch = 0x00000002,
443 SC_Q3ListViewExpand = 0x00000004,
445 SC_DialGroove = 0x00000001,
446 SC_DialHandle = 0x00000002,
447 SC_DialTickmarks = 0x00000004,
449 SC_GroupBoxCheckBox = 0x00000001,
450 SC_GroupBoxLabel = 0x00000002,
451 SC_GroupBoxContents = 0x00000004,
452 SC_GroupBoxFrame = 0x00000008,
454 SC_MdiMinButton = 0x00000001,
455 SC_MdiNormalButton = 0x00000002,
456 SC_MdiCloseButton = 0x00000004,
458 SC_CustomBase = 0xf0000000,
461 Q_DECLARE_FLAGS(SubControls, SubControl)
464 typedef SubControls SCFlags;
467 virtual void drawComplexControl(ComplexControl cc,
const QStyleOptionComplex *opt,
QPainter *
p,
468 const QWidget *widget = 0)
const = 0;
469 virtual SubControl hitTestComplexControl(ComplexControl cc,
const QStyleOptionComplex *opt,
471 virtual QRect subControlRect(ComplexControl cc,
const QStyleOptionComplex *opt,
472 SubControl sc,
const QWidget *widget = 0)
const = 0;
535 PM_MDIFrameWidth = PM_MdiSubWindowFrameWidth,
537 PM_MDIMinimizedWidth = PM_MdiSubWindowMinimizedWidth,
596 PM_CustomBase = 0xf0000000
599 virtual int pixelMetric(PixelMetric metric,
const QStyleOption *option = 0,
600 const QWidget *widget = 0)
const = 0;
629 CT_CustomBase = 0xf0000000
632 virtual QSize sizeFromContents(ContentsType ct,
const QStyleOption *opt,
669 SH_ScrollBar_StopMouseOverSlider = SH_Slider_StopMouseOverSlider,
743 SH_GUIStyle = 0x00000100,
744 SH_ScrollBar_BackgroundMode,
747 SH_UnderlineAccelerator = SH_UnderlineShortcut,
749 SH_CustomBase = 0xf0000000
752 virtual int styleHint(StyleHint stylehint,
const QStyleOption *opt = 0,
753 const QWidget *widget = 0, QStyleHintReturn* returnData = 0)
const = 0;
826 SP_CustomBase = 0xf0000000
829 virtual QPixmap standardPixmap(StandardPixmap standardPixmap,
const QStyleOption *opt = 0,
830 const QWidget *widget = 0)
const = 0;
832 QIcon standardIcon(StandardPixmap standardIcon,
const QStyleOption *option = 0,
833 const QWidget *widget = 0)
const;
836 const QStyleOption *opt)
const = 0;
839 const QRect &logicalRect);
841 const QPoint &logicalPos);
842 static int sliderPositionFromValue(
int min,
int max,
int val,
int space,
843 bool upsideDown =
false);
844 static int sliderValueFromPosition(
int min,
int max,
int pos,
int space,
845 bool upsideDown =
false);
846 static Qt::Alignment visualAlignment(
Qt::LayoutDirection direction, Qt::Alignment alignment);
852 const QStyleOption *option = 0,
const QWidget *widget = 0)
const;
853 int combinedLayoutSpacing(QSizePolicy::ControlTypes controls1,
855 QStyleOption *option = 0,
QWidget *widget = 0)
const;
857 const QStyle * proxy()
const;
860 QIcon standardIconImplementation(StandardPixmap standardIcon,
const QStyleOption *opt = 0,
861 const QWidget *widget = 0)
const;
865 const QStyleOption *option = 0,
866 const QWidget *widget = 0)
const;
871 friend class QWidgetPrivate;
874 friend class QProxyStylePrivate;
875 void setProxy(
QStyle *style);
879 Q_DECLARE_OPERATORS_FOR_FLAGS(
QStyle::SubControls)
881 #if !defined(QT_NO_DEBUG_STREAM)
GLdouble GLdouble GLdouble r
RequestSoftwareInputPanel
State
The state the media producing object is in at the moment.
GLXFBConfig Pixmap pixmap
#define QT_BEGIN_NAMESPACE
GLubyte GLubyte GLubyte GLubyte w
Q_GUI_EXPORT QDebug operator<<(QDebug debug, QStyle::State state)