42 #ifndef QSTYLESHEETSTYLE_P_H 43 #define QSTYLESHEETSTYLE_P_H 45 #include "QtGui/qwindowsstyle.h" 47 #ifndef QT_NO_STYLE_STYLESHEET 49 #include "QtGui/qstyleoption.h" 50 #include "QtCore/qhash.h" 51 #include "QtGui/qevent.h" 52 #include "QtCore/qvector.h" 53 #include "QtGui/qapplication.h" 54 #include "private/qcssparser_p.h" 55 #include "QtGui/qbrush.h" 119 QStyle *baseStyle()
const;
130 void updateStyleSheetFont(
QWidget* w)
const;
131 void saveWidgetFont(
QWidget* w,
const QFont& font)
const;
132 void clearWidgetFont(
QWidget* w)
const;
152 int nativeFrameWidth(
const QWidget *);
168 bool hasStyleRule(
const QWidget *w,
int part)
const;
175 static bool isNaturalChild(
const QWidget *w);
176 bool initWidget(
const QWidget *w)
const;
189 void widgetDestroyed(
QObject *);
190 void styleDestroyed(
QObject *);
203 #endif // QT_NO_STYLE_STYLESHEET 204 #endif // QSTYLESHEETSTYLE_P_H The QPainter class performs low-level painting on widgets and other paint devices.
QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget=0) const
void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const
Reimplemented Function
void polish(QApplication *)
Reimplemented Function
void unpolish(QApplication *)
Reimplemented Function
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.
QHash< const QWidget *, QPalette > customPaletteWidgets
virtual QRect itemPixmapRect(const QRect &r, int flags, const QPixmap &pixmap) const
Returns the area within the given rectangle in which to draw the specified pixmap according to the de...
ComplexControl
This enum describes the available complex controls.
The QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar...
PixelMetric
This enum describes the various available pixel metrics.
QHash< const QWidget *, QHash< int, bool > > hasStyleRuleCache
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
virtual void drawItemText(QPainter *painter, const QRect &rect, int flags, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole=QPalette::NoRole) const
Draws the given text in the specified rectangle using the provided painter and palette.
QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const
Reimplemented Function
QHash< const void *, QCss::StyleSheet > styleSheetCache
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
QHash< const QWidget *, QRenderRules > renderRulesCache
The QObject class is the base class of all Qt objects.
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const
Reimplemented Function
StandardPixmap
This enum describes the available standard pixmaps.
int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=0, const QWidget *widget=0) const
Returns the spacing that should be used between control1 and control2 in a layout.
QRect originRect(const QRect &rect, Origin origin) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QRect itemTextRect(const QFontMetrics &fm, const QRect &r, int flags, bool enabled, const QString &text) const
Returns the area within the given rectangle in which to draw the provided text according to the speci...
virtual QPalette standardPalette() const
Returns the style's standard palette.
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.
QHash< int, QHash< quint64, QRenderRule > > QRenderRules
int pixelMetric(PixelMetric pm, const QStyleOption *option=0, const QWidget *widget=0) const
Reimplemented Function
void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *w=0) const
Reimplemented Function
QWindowsStyle ParentStyle
int styleHint(StyleHint hint, const QStyleOption *opt=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const
Reimplemented Function
virtual void drawItemPixmap(QPainter *painter, const QRect &rect, int alignment, const QPixmap &pixmap) const
Draws the given pixmap in the specified rectangle, according to the specified alignment, using the provided painter.
PrimitiveElement
This enum describes the various primitive elements.
QSet< const QWidget * > autoFillDisabledWidgets
The QFont class specifies a font used for drawing text.
QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *widget=0) const
Reimplemented Function
QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt, const QWidget *widget=0) const
Reimplemented Function
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.
#define Q_AUTOTEST_EXPORT
SubControl hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *w=0) const
Reimplemented Function
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)
QRect subElementRect(SubElement r, const QStyleOption *opt, const QWidget *widget=0) const
Reimplemented Function
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls...
The QWindowsStyle class provides a Microsoft Windows-like look and feel.
QHash< const QWidget *, QVector< QCss::StyleRule > > styleRulesCache
The QEvent class is the base class of all event classes.
int layoutSpacingImplementation(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=0, const QWidget *widget=0) const
This slot is called by layoutSpacing() to determine the spacing that should be used between control1 ...
QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *w=0) const
Reimplemented Function
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.