Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qohosstyle_p.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
QOHOSSTYLE_P_H
5
#
define
QOHOSSTYLE_P_H
6
7
#
include
<
QtWidgets
/
qcommonstyle
.
h
>
8
#
include
<
QtCore
/
qobject
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
Q_WIDGETS_EXPORT
QOhosStyle
:
public
QCommonStyle
13
{
14
Q_OBJECT
15
16
public
:
17
QOhosStyle();
18
~QOhosStyle() =
default
;
19
20
void
drawPrimitive(
21
PrimitiveElement element,
const
QStyleOption *option, QPainter *painter,
const
QWidget *widget)
const
override;
22
void
drawControl(
23
ControlElement element,
const
QStyleOption *option, QPainter *painter,
const
QWidget *widget)
const
override;
24
void
drawComplexControl(
25
ComplexControl control,
const
QStyleOptionComplex *option, QPainter *painter,
26
const
QWidget *widget)
const
override;
27
QRect subControlRect(
28
ComplexControl control,
const
QStyleOptionComplex *option, SubControl subControl,
29
const
QWidget *widget)
const
override;
30
QRect subElementRect(SubElement element,
const
QStyleOption *option,
const
QWidget *widget)
const
override;
31
QSize sizeFromContents(
32
ContentsType contents,
const
QStyleOption *option,
const
QSize &contentsSize,
33
const
QWidget *widget)
const
override;
34
int
pixelMetric(PixelMetric metric,
const
QStyleOption *option,
const
QWidget *widget)
const
override;
35
int
styleHint(
36
StyleHint hint,
const
QStyleOption *option,
const
QWidget *widget,
37
QStyleHintReturn *hintReturn)
const
override;
38
39
void
polish(QWidget *widget) override;
40
void
unpolish(QWidget *widget) override;
41
42
QPalette standardPalette()
const
override;
43
44
QIcon standardIcon(
45
StandardPixmap standardPixmap,
const
QStyleOption *option,
const
QWidget *widget)
const
override;
46
47
private
:
48
Q_DISABLE_COPY(QOhosStyle)
49
};
50
51
QT_END_NAMESPACE
52
53
#
endif
QOhosStylePlugin
Definition
main.cpp:10
QOhosStyle
Definition
qohosstyle_p.h:13
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
styles
ohos
qohosstyle_p.h
Generated on
for Qt by
1.18.0