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
qquickwindowsxpstyle_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QQUICKWINDOWSXPSTYLE_P_H
5#define QQUICKWINDOWSXPSTYLE_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
21
22namespace QQC2 {
23
24class QWindowsXPStylePrivate;
26{
28public:
31 ~QWindowsXPStyle() override;
32
33 void drawPrimitive(PrimitiveElement pe, const QStyleOption *option, QPainter *p) const override;
34 void drawControl(ControlElement element, const QStyleOption *option, QPainter *p) const override;
35 QRect subElementRect(SubElement r, const QStyleOption *option) const override;
37 void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *option, QPainter *p) const override;
38 QSize sizeFromContents(ContentsType ct, const QStyleOption *option, const QSize &contentsSize) const override;
39 int pixelMetric(PixelMetric pm, const QStyleOption *option = nullptr) const override;
40 int styleHint(StyleHint hint, const QStyleOption *option = nullptr,
41 QStyleHintReturn *returnData = nullptr) const override;
42
43 QPalette standardPalette() const override;
45 QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option = nullptr) const override;
46
48
49private:
50 Q_DISABLE_COPY_MOVE(QWindowsXPStyle)
51 Q_DECLARE_PRIVATE(QWindowsXPStyle)
52 friend class QStyleFactory;
53};
54
55} // namespace QQC2
56
58
59#endif // QQUICKWINDOWSXPSTYLE_P_H
The QIcon class provides scalable icons in different modes and states.
Definition qicon.h:20
\inmodule QtCore
Definition qmargins.h:24
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.
The QWindowsXPStyle class provides a Microsoft Windows XP-like look and feel.
QPixmap standardPixmap(StandardPixmap standardIcon, const QStyleOption *option) const override
\reimp
void drawPrimitive(PrimitiveElement pe, const QStyleOption *option, QPainter *p) const override
\reimp
QRect subElementRect(SubElement r, const QStyleOption *option) const override
\reimp
QMargins ninePatchMargins(QStyle::ComplexControl cc, const QStyleOptionComplex *opt, const QSize &imageSize) const override
int styleHint(StyleHint hint, const QStyleOption *option=nullptr, QStyleHintReturn *returnData=nullptr) const override
\reimp
~QWindowsXPStyle() override
Destroys the style.
QSize sizeFromContents(ContentsType ct, const QStyleOption *option, const QSize &contentsSize) const override
\reimp
QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option=nullptr) const override
\reimp
void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *option, QPainter *p) const override
\reimp
QWindowsXPStyle()
Constructs a QWindowsStyle.
void drawControl(ControlElement element, const QStyleOption *option, QPainter *p) const override
\reimp
int pixelMetric(PixelMetric pm, const QStyleOption *option=nullptr) const override
\reimp
QPalette standardPalette() const override
\reimp
QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *option, SubControl sc) const override
\reimp
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:25
The QStyleFactory class creates QStyle objects.
QStyleOptionButton opt
Combined button and popup list for selecting options.
GLboolean r
[2]
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei imageSize
GLfloat GLfloat p
[1]
GLuint GLenum option
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define Q_OBJECT