45 #include <QtCore/qobject.h> 46 #include <QtCore/qrect.h> 47 #include <QtCore/qsize.h> 48 #include <QtGui/qicon.h> 49 #include <QtGui/qpixmap.h> 50 #include <QtGui/qpalette.h> 51 #include <QtGui/qsizepolicy.h> 81 virtual void unpolish(
QWidget *);
92 virtual QRect itemPixmapRect(
const QRect &r,
int flags,
const QPixmap &pixmap)
const;
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
142 typedef State SFlags;
160 PE_FrameStatusBarItem = PE_FrameStatusBar,
181 PE_IndicatorItemViewItemCheck = PE_IndicatorViewItemCheck,
212 PE_CustomBase = 0xf000000
216 const QWidget *w = 0)
const = 0;
283 CE_CustomBase = 0xf0000000
287 const QWidget *w = 0)
const = 0;
336 SE_ItemViewItemCheckIndicator = SE_ViewItemCheckIndicator,
379 SE_CustomBase = 0xf0000000
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,
535 PM_MDIFrameWidth = PM_MdiSubWindowFrameWidth,
537 PM_MDIMinimizedWidth = PM_MdiSubWindowMinimizedWidth,
596 PM_CustomBase = 0xf0000000
629 CT_CustomBase = 0xf0000000
633 const QSize &contentsSize,
const QWidget *w = 0)
const = 0;
669 SH_ScrollBar_StopMouseOverSlider = SH_Slider_StopMouseOverSlider,
743 SH_GUIStyle = 0x00000100,
744 SH_ScrollBar_BackgroundMode,
747 SH_UnderlineAccelerator = SH_UnderlineShortcut,
749 SH_CustomBase = 0xf0000000
826 SP_CustomBase = 0xf0000000
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);
853 int combinedLayoutSpacing(QSizePolicy::ControlTypes controls1,
857 const QStyle * proxy()
const;
875 void setProxy(
QStyle *style);
881 #if !defined(QT_NO_DEBUG_STREAM)
The QPainter class performs low-level painting on widgets and other paint devices.
The QDebug class provides an output stream for debugging information.
The QApplication class manages the GUI application's control flow and main settings.
SubControl
This enum describes the available sub controls.
StyleHint
This enum describes the available style hints.
The QStyleHintReturn class provides style hints that return more than basic data types.
The QFontMetrics class provides font metrics information.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
ColorRole
The ColorRole enum defines the different symbolic color roles used in current GUIs.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
ComplexControl
This enum describes the available complex controls.
The QProxyStyle class is a convenience class that simplifies dynamically overriding QStyle elements...
PixelMetric
This enum describes the various available pixel metrics.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
RequestSoftwareInputPanel
This enum describes under what circumstances a software input panel will be requested by input capabl...
StandardPixmap
This enum describes the available standard pixmaps.
static const QRectF boundingRect(const QPointF *points, int pointCount)
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QStyleOption class stores the parameters used by QStyle functions.
ContentsType
This enum describes the available contents types.
Mode
This enum type describes the mode for which a pixmap is intended to be used.
const char * styleHint(const QFontDef &request)
The State element defines configurations of objects and properties.
PrimitiveElement
This enum describes the various primitive elements.
static const QStyle::SubControl SubControls[]
The QPoint class defines a point in the plane using integer precision.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI...
The QRect class defines a rectangle in the plane using integer precision.
The QPixmap class is an off-screen image representation that can be used as a paint device...
ControlElement
This enum represents a control element.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls...
StateFlag
This enum describes flags that are used when drawing primitive elements.
The QAction class provides an abstract user interface action that can be inserted into widgets...
Q_GUI_EXPORT QDebug operator<<(QDebug debug, QStyle::State state)
SubElement
This enum represents a sub-area of a widget.
Qt::LayoutDirection direction
static void visualRect(QRectF *geom, Qt::LayoutDirection dir, const QRectF &contentsRect)
The QPalette class contains color groups for each widget state.
The QIcon class provides scalable icons in different modes and states.