Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qiostheme.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 QIOSTHEME_H
5#define QIOSTHEME_H
6
7#include <QtCore/QHash>
8#include <QtGui/QPalette>
9#include <qpa/qplatformtheme.h>
10
11#include <QtCore/private/qcore_mac_p.h>
12
14
16{
17public:
18 QIOSTheme();
19 ~QIOSTheme();
20
21 const QPalette *palette(Palette type = SystemPalette) const override;
22 QVariant themeHint(ThemeHint hint) const override;
23
24 Qt::ColorScheme colorScheme() const override;
25
27 QPlatformMenu* createPlatformMenu() const override;
28
29 bool usePlatformNativeDialog(DialogType type) const override;
31
32 const QFont *font(Font type = SystemFont) const override;
33
34 static const char *name;
35
36 static void initializeSystemPalette();
37
38private:
39 static QPalette s_systemPalette;
40 QMacNotificationObserver m_contentSizeCategoryObserver;
41};
42
44
45#endif
\reentrant
Definition qfont.h:20
QPlatformMenu * createPlatformMenu() const override
Definition qiostheme.mm:93
static const char * name
Definition qiostheme.h:34
QVariant themeHint(ThemeHint hint) const override
Definition qiostheme.mm:137
static void initializeSystemPalette()
Definition qiostheme.mm:50
Qt::ColorScheme colorScheme() const override
Definition qiostheme.mm:149
bool usePlatformNativeDialog(DialogType type) const override
Definition qiostheme.mm:102
QPlatformMenuItem * createPlatformMenuItem() const override
Definition qiostheme.mm:84
QPlatformDialogHelper * createPlatformDialogHelper(DialogType type) const override
Definition qiostheme.mm:115
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
The QPlatformDialogHelper class allows for platform-specific customization of dialogs.
The QPlatformTheme class allows customizing the UI based on themes.
ThemeHint
This enum describes the available theme hints.
\inmodule QtCore
Definition qvariant.h:64
Combined button and popup list for selecting options.
ColorScheme
Definition qnamespace.h:49
GLenum type
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)