Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
18#include "qquickcommonstyle.h"
19#include "private/qglobal_p.h"
20#include <QBasicTimer>
21
23
24class QPalette;
25
26namespace QQC2 {
27
29class QWindowsStylePrivate;
30
31class QWindowsStylePrivate;
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
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:
63 Q_DISABLE_COPY_MOVE(QWindowsStyle)
64 Q_DECLARE_PRIVATE(QWindowsStyle)
65 QBasicTimer paletteTimer;
66
67public Q_SLOTS:
68 void refreshPalette();
69};
70
71} // namespace QQC2
72
74
75#endif // QQUICKWINDOWSSTYLE_P_H
\inmodule QtCore
Definition qbasictimer.h:18
The QIcon class provides scalable icons in different modes and states.
Definition qicon.h:20
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
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
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
QWindowsStyle()
Constructs a QWindowsStyle object.
QRect subElementRect(SubElement r, const QStyleOption *opt) const override
\reimp
QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const override
\reimp
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:25
\variable QStyleOptionHeaderV2::textElideMode
\inmodule QtCore
Definition qcoreevent.h:366
QStyleOptionButton opt
Combined button and popup list for selecting options.
GLboolean r
[2]
struct _cl_event * event
GLfloat GLfloat p
[1]
GLuint GLenum option
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define Q_OBJECT
#define Q_SLOTS