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
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 <QCommonStyle>
8#include <QObject>
9
11
12class Q_WIDGETS_EXPORT QOhosStyle : public QCommonStyle
13{
14 Q_OBJECT
15
16public:
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
44private:
45 Q_DISABLE_COPY(QOhosStyle)
46};
47
48QT_END_NAMESPACE
49
50#endif
Combined button and popup list for selecting options.