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
22
QT_BEGIN_NAMESPACE
23
24
25
#
if
QT_CONFIG
(
style_fusion
)
26
27
class
QFusionStylePrivate
;
28
class
Q_WIDGETS_EXPORT
QFusionStyle
:
public
QCommonStyle
29
{
30
Q_OBJECT
31
Q_DECLARE_PRIVATE
(
QFusionStyle
)
32
33
public
:
34
QFusionStyle
();
35
~
QFusionStyle
();
36
37
QPalette
standardPalette
()
const
override
;
38
void
drawPrimitive
(
PrimitiveElement
elem
,
39
const
QStyleOption
*
option
,
40
QPainter
*
painter
,
const
QWidget
*
widget
=
nullptr
)
const
override
;
41
void
drawControl
(
ControlElement
ce
,
const
QStyleOption
*
option
,
QPainter
*
painter
,
42
const
QWidget
*
widget
)
const
override
;
43
int
pixelMetric
(
PixelMetric
metric
,
const
QStyleOption
*
option
=
nullptr
,
const
QWidget
*
widget
=
nullptr
)
const
override
;
44
void
drawComplexControl
(
ComplexControl
control
,
const
QStyleOptionComplex
*
option
,
45
QPainter
*
painter
,
const
QWidget
*
widget
)
const
override
;
46
QRect
subElementRect
(
SubElement
r
,
const
QStyleOption
*
opt
,
const
QWidget
*
widget
=
nullptr
)
const
override
;
47
QSize
sizeFromContents
(
ContentsType
type
,
const
QStyleOption
*
option
,
48
const
QSize
&
size
,
const
QWidget
*
widget
)
const
override
;
49
SubControl
hitTestComplexControl
(
ComplexControl
cc
,
const
QStyleOptionComplex
*
opt
,
50
const
QPoint
&
pt
,
const
QWidget
*
w
=
nullptr
)
const
override
;
51
QRect
subControlRect
(
ComplexControl
cc
,
const
QStyleOptionComplex
*
opt
,
52
SubControl
sc
,
const
QWidget
*
widget
)
const
override
;
53
QPixmap
generatedIconPixmap
(
QIcon
::
Mode
iconMode
,
const
QPixmap
&
pixmap
,
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
;
58
QIcon
iconFromTheme
(
StandardPixmap
standardIcon
)
const
;
59
QIcon
standardIcon
(
StandardPixmap
standardIcon
,
const
QStyleOption
*
option
=
nullptr
,
60
const
QWidget
*
widget
=
nullptr
)
const
override
;
61
QPixmap
standardPixmap
(
StandardPixmap
standardPixmap
,
const
QStyleOption
*
opt
,
62
const
QWidget
*
widget
=
nullptr
)
const
override
;
63
void
drawItemPixmap
(
QPainter
*
painter
,
const
QRect
&
rect
,
64
int
alignment
,
const
QPixmap
&
pixmap
)
const
override
;
65
void
drawItemText
(
QPainter
*
painter
,
const
QRect
&
rect
,
66
int
flags
,
const
QPalette
&
pal
,
bool
enabled
,
67
const
QString
&
text
,
QPalette
::
ColorRole
textRole
=
QPalette
::
NoRole
)
const
override
;
68
void
polish
(
QWidget
*
widget
)
override
;
69
void
polish
(
QApplication
*
app
)
override
;
70
void
polish
(
QPalette
&
pal
)
override
;
71
void
unpolish
(
QWidget
*
widget
)
override
;
72
void
unpolish
(
QApplication
*
app
)
override
;
73
74
protected
:
75
QFusionStyle
(
QFusionStylePrivate
&
dd
);
76
77
private
:
78
bool
isHighContrast
()
const
;
79
Qt
::
ColorScheme
colorScheme
()
const
;
80
};
81
82
#
endif
// style_fusion
83
84
QT_END_NAMESPACE
85
86
#
endif
//QFUSIONSTYLE_P_H
QSqlRelationalDelegate
\inmodule QtSql
qtbase
src
widgets
styles
qfusionstyle_p.h
Generated on
for Qt by
1.14.0