Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickwindowsstyle_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKWINDOWSSTYLE_P_H
5#define QQUICKWINDOWSSTYLE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19#include "private/qglobal_p.h"
20#include <QBasicTimer>
21
23
24class QPalette;
25
26namespace QQC2 {
27
30
32
34{
36public:
38 ~QWindowsStyle() override;
39
40 void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p) const override;
41 void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p) const override;
42 void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p) const override;
43
44 QRect subElementRect(SubElement r, const QStyleOption *opt) const override;
45 QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const override;
46
47 int pixelMetric(PixelMetric pm, const QStyleOption *option = nullptr) const override;
48
49 int styleHint(StyleHint hint, const QStyleOption *opt = nullptr,
50 QStyleHintReturn *returnData = nullptr) const override;
51
52 QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt) const override;
53
54 QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option = nullptr) const override;
55 void polish() override;
56
57protected:
58// bool eventFilter(QObject *o, QEvent *e) override;
60 void timerEvent(QTimerEvent * event) override;
61
62private:
66
67public Q_SLOTS:
68 void refreshPalette();
69};
70
71} // namespace QQC2
72
73QT_END_NAMESPACE
74
75#endif // QQUICKWINDOWSSTYLE_P_H
The QWindowsStyle class provides a Microsoft Windows-like look and feel.
QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option=nullptr) const override
\reimp
void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p) const override
\reimp
void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p) const override
\reimp
QWindowsStyle(QWindowsStylePrivate &dd)
int pixelMetric(PixelMetric pm, const QStyleOption *option=nullptr) const override
\reimp
int styleHint(StyleHint hint, const QStyleOption *opt=nullptr, QStyleHintReturn *returnData=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.
QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt) const override
\reimp
~QWindowsStyle() override
Destroys the QWindowsStyle object.
void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p) const override
\reimp
QRect subElementRect(SubElement r, const QStyleOption *opt) const override
\reimp
QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const override
\reimp
static QScreen * screenOf(const QWindow *w)
Combined button and popup list for selecting options.