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
qfusionstyle_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// Qt-Security score:significant reason:default
4
5#ifndef QFUSIONSTYLE_P_H
6#define QFUSIONSTYLE_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 <QtWidgets/private/qtwidgetsglobal_p.h>
20#include <QtWidgets/qcommonstyle.h>
21
23
24
25#if QT_CONFIG(style_fusion)
26
29{
32
33public:
35 ~QFusionStyle();
36
39 const QStyleOption *option,
40 QPainter *painter, const QWidget *widget = nullptr) const override;
42 const QWidget *widget) const override;
43 int pixelMetric(PixelMetric metric, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const override;
45 QPainter *painter, const QWidget *widget) const override;
46 QRect subElementRect(SubElement r, const QStyleOption *opt, const QWidget *widget = nullptr) const override;
48 const QSize &size, const QWidget *widget) const override;
50 const QPoint &pt, const QWidget *w = nullptr) const override;
52 SubControl sc, const QWidget *widget) const override;
54 const QStyleOption *opt) const override;
55 int styleHint(StyleHint hint, const QStyleOption *option = nullptr, const QWidget *widget = nullptr,
56 QStyleHintReturn *returnData = nullptr) const override;
57 QRect itemPixmapRect(const QRect &r, int flags, const QPixmap &pixmap) const override;
60 const QWidget *widget = nullptr) const override;
62 const QWidget *widget = nullptr) const override;
64 int alignment, const QPixmap &pixmap) const override;
66 int flags, const QPalette &pal, bool enabled,
73
74protected:
76
77private:
78 bool isHighContrast() const;
79 Qt::ColorScheme colorScheme() const;
80};
81
82#endif // style_fusion
83
85
86#endif //QFUSIONSTYLE_P_H
\inmodule QtSql