42 #ifndef QCOMMONSTYLE_H 43 #define QCOMMONSTYLE_H 45 #include <QtGui/qstyle.h> 95 const QWidget *widget = 0)
const;
109 #endif // QCOMMONSTYLE_H virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const =0
Returns a copy of the given pixmap, styled to conform to the specified iconMode and taking into accou...
The QPainter class performs low-level painting on widgets and other paint devices.
virtual void unpolish(QWidget *)
Uninitialize the given {widget}'s appearance.
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.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
virtual QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget=0) const =0
Returns the rectangle containing the specified subControl of the given complex control (with the styl...
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const =0
Returns the value of the given pixel metric.
ComplexControl
This enum describes the available complex controls.
PixelMetric
This enum describes the various available pixel metrics.
virtual int styleHint(StyleHint stylehint, const QStyleOption *opt=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const =0
Returns an integer representing the specified style hint for the given widget described by the provid...
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
StandardPixmap
This enum describes the available standard pixmaps.
#define QT_BEGIN_NAMESPACE
This macro expands to.
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.
virtual void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const =0
Draws the given primitive element with the provided painter using the style options specified by opti...
virtual void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget=0) const =0
Draws the given control using the provided painter with the style options specified by option...
virtual QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *w=0) const =0
Returns the size of the element described by the specified option and type, based on the provided con...
virtual QRect subElementRect(SubElement subElement, const QStyleOption *option, const QWidget *widget=0) const =0
Returns the sub-area for the given element as described in the provided style option.
PrimitiveElement
This enum describes the various primitive elements.
The QCommonStyle class encapsulates the common Look and Feel of a GUI.
The QPoint class defines a point in the plane using integer precision.
virtual void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const =0
Draws the given element with the provided painter with the style options specified by option...
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.
virtual SubControl hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *widget=0) const =0
Returns the sub control at the given position in the given complex control (with the style options sp...
The QPixmap class is an off-screen image representation that can be used as a paint device...
virtual void polish(QWidget *)
Initializes the appearance of the given widget.
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...
virtual QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt=0, const QWidget *widget=0) const =0
QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *opt=0, const QWidget *widget=0) const
Returns an icon for the given standardIcon.
SubElement
This enum represents a sub-area of a widget.
The QPalette class contains color groups for each widget state.
The QIcon class provides scalable icons in different modes and states.