Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquicktheme_p.h
Go to the documentation of this file.
1
// Copyright (C) 2017 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 QQUICKTHEME_P_H
5
#define QQUICKTHEME_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
19
#include <QtCore/qscopedpointer.h>
20
#include <QtGui/qfont.h>
21
#include <QtGui/qpalette.h>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QQuickThemePrivate
;
26
27
class
Q_QUICKTEMPLATES2_EXPORT
QQuickTheme
28
{
29
public
:
30
QQuickTheme
();
31
~QQuickTheme
();
32
33
static
QQuickTheme
*instance();
34
35
enum
Scope
{
36
System
,
37
Button
,
38
CheckBox
,
39
ComboBox
,
40
GroupBox
,
41
ItemView
,
42
Label
,
43
ListView
,
44
Menu
,
45
MenuBar
,
46
RadioButton
,
47
SpinBox
,
48
Switch
,
49
TabBar
,
50
TextArea
,
51
TextField
,
52
ToolBar
,
53
ToolTip
,
54
Tumbler
55
};
56
57
static
QFont
font
(Scope scope);
58
static
QPalette
palette
(Scope scope);
59
60
void
setFont(Scope scope,
const
QFont
&
font
);
61
void
setPalette(Scope scope,
const
QPalette
&
palette
);
62
63
void
setUsePlatformPalette
(
const
bool
enable
) { preferPlatformTheme =
enable
; }
64
bool
usePlatformPalette
() {
return
preferPlatformTheme; }
65
66
private
:
67
Q_DISABLE_COPY(
QQuickTheme
)
68
Q_DECLARE_PRIVATE(
QQuickTheme
)
69
QScopedPointer<QQuickThemePrivate> d_ptr;
70
bool
preferPlatformTheme =
false
;
71
};
72
73
QT_END_NAMESPACE
74
75
#endif
// QQUICKTHEME_P_H
QFont
\reentrant
Definition
qfont.h:22
QPalette
The QPalette class contains color groups for each widget state.
Definition
qpalette.h:19
QQuickThemePrivate
Definition
qquicktheme_p_p.h:23
QQuickTheme
Definition
qquicktheme_p.h:28
QQuickTheme::setUsePlatformPalette
void setUsePlatformPalette(const bool enable)
Definition
qquicktheme_p.h:63
QQuickTheme::usePlatformPalette
bool usePlatformPalette()
Definition
qquicktheme_p.h:64
QQuickTheme::Scope
Scope
Definition
qquicktheme_p.h:35
QQuickTheme::TextArea
@ TextArea
Definition
qquicktheme_p.h:50
QQuickTheme::Button
@ Button
Definition
qquicktheme_p.h:37
QQuickTheme::GroupBox
@ GroupBox
Definition
qquicktheme_p.h:40
QQuickTheme::Switch
@ Switch
Definition
qquicktheme_p.h:48
QQuickTheme::ComboBox
@ ComboBox
Definition
qquicktheme_p.h:39
QQuickTheme::RadioButton
@ RadioButton
Definition
qquicktheme_p.h:46
QQuickTheme::ItemView
@ ItemView
Definition
qquicktheme_p.h:41
QQuickTheme::TextField
@ TextField
Definition
qquicktheme_p.h:51
QQuickTheme::Menu
@ Menu
Definition
qquicktheme_p.h:44
QQuickTheme::ToolTip
@ ToolTip
Definition
qquicktheme_p.h:53
QQuickTheme::CheckBox
@ CheckBox
Definition
qquicktheme_p.h:38
QQuickTheme::System
@ System
Definition
qquicktheme_p.h:36
QQuickTheme::ListView
@ ListView
Definition
qquicktheme_p.h:43
QQuickTheme::TabBar
@ TabBar
Definition
qquicktheme_p.h:49
QQuickTheme::SpinBox
@ SpinBox
Definition
qquicktheme_p.h:47
QQuickTheme::ToolBar
@ ToolBar
Definition
qquicktheme_p.h:52
QQuickTheme::MenuBar
@ MenuBar
Definition
qquicktheme_p.h:45
QQuickTheme::Label
@ Label
Definition
qquicktheme_p.h:42
palette
palette
Definition
doc_src_styles.cpp:44
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
enable
GLboolean enable
Definition
qopengles2ext.h:855
font
QFont font
Definition
src_gui_dialogs_qfontdialog.cpp:6
qtdeclarative
src
quicktemplates
qquicktheme_p.h
Generated by
1.10.0