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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKWINDOWSSTYLE_P_H
6#define QQUICKWINDOWSSTYLE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <private/qglobal_p.h>
20#include <private/qqc2qcommonstyle_p.h>
21
22#include <QtCore/qbasictimer.h>
23
24QT_BEGIN_NAMESPACE
25
26class QPalette;
27
28namespace QQC2 {
29
32
34
36{
38public:
41
42 void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p) const override;
43 void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p) const override;
44 void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p) const override;
45
46 QRect subElementRect(SubElement r, const QStyleOption *opt) const override;
47 QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const override;
48
49 int pixelMetric(PixelMetric pm, const QStyleOption *option = nullptr) const override;
50
51 int styleHint(StyleHint hint, const QStyleOption *opt = nullptr,
52 QStyleHintReturn *returnData = nullptr) const override;
53
54 QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt) const override;
55
56 QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option = nullptr) const override;
57 void polish() override;
58
59protected:
60// bool eventFilter(QObject *o, QEvent *e) override;
62 void timerEvent(QTimerEvent * event) override;
63
64private:
68
69public Q_SLOTS:
70 void refreshPalette();
71};
72
73} // namespace QQC2
74
75QT_END_NAMESPACE
76
77#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
void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p) const override
void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p) const override
QWindowsStyle(QWindowsStylePrivate &dd)
int pixelMetric(PixelMetric pm, const QStyleOption *option=nullptr) const override
int styleHint(StyleHint hint, const QStyleOption *opt=nullptr, QStyleHintReturn *returnData=nullptr) const override
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
void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p) const override
QRect subElementRect(SubElement r, const QStyleOption *opt) const override
QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const override
static QScreen * screenOf(const QWindow *w)