4#ifndef QQUICKWINDOWSSTYLE_P_P_H
5#define QQUICKWINDOWSSTYLE_P_P_H
35 Q_DECLARE_PUBLIC(QWindowsStyle)
44 return devicePixelRatio(option ? option->window :
nullptr);
48 {
return win ? win->devicePixelRatio() : QWindowsStylePrivate::appDevicePixelRatio(); }
78 static qreal appDevicePixelRatio();
TickPosition tickPosition
static qreal devicePixelRatio(const QWindow *win)
QColor activeCaptionColor
QColor activeGradientCaptionColor
static int fixedPixelMetric(QStyle::PixelMetric pm)
static qreal devicePixelRatio(const QStyleOption *option=nullptr)
static qreal nativeMetricScaleFactor(const QStyleOption *option=nullptr)
QList< const QWidget * > seenAlt
static int pixelMetricFromSystemDp(QStyle::PixelMetric pm, const QStyleOption *option=nullptr)
QColor inactiveGradientCaptionColor
static qreal nativeMetricScaleFactor(const QWindow *win)
QColor inactiveCaptionText
QColor inactiveCaptionColor
The QWindowsStyle class provides a Microsoft Windows-like look and feel.
QWindowsStyle(QWindowsStylePrivate &dd)
QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option=nullptr) const override
\reimp
QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt) const override
\reimp
QRect subElementRect(SubElement r, const QStyleOption *opt) const override
\reimp
void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p) const override
\reimp
int styleHint(StyleHint hint, const QStyleOption *opt=nullptr, QStyleHintReturn *returnData=nullptr) const override
\reimp
QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const override
\reimp
void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p) const override
\reimp
~QWindowsStyle() override
Destroys the QWindowsStyle object.
int pixelMetric(PixelMetric pm, const QStyleOption *option=nullptr) const override
\reimp
void timerEvent(QTimerEvent *event) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p) const override
\reimp
static QScreen * screenOf(const QWindow *w)
Combined button and popup list for selecting options.