QtCanpool
3.3.0
载入中...
搜索中...
未找到
windowstyleagent.h
浏览该文件的文档.
1
#ifndef WINDOWSTYLEAGENT_H
2
#define WINDOWSTYLEAGENT_H
3
4
#include "
qxwindow/qxwindow_global.h
"
5
#include <QtCore/QObject>
6
#include <QtGui/QWindow>
7
#include <memory>
8
9
QX_WINDOW_BEGIN_NAMESPACE
10
11
class
WindowStyleAgentPrivate;
12
13
class
QX_WINDOW_EXPORT
WindowStyleAgent
:
public
QObject
14
{
15
Q_OBJECT
16
Q_DECLARE_PRIVATE(
WindowStyleAgent
)
17
public
:
18
explicit
WindowStyleAgent
(QObject *parent =
nullptr
);
19
~WindowStyleAgent
()
override
;
20
21
enum
SystemTheme
{
22
Unknown
,
23
Light
,
24
Dark
,
25
HighContrast
,
26
};
27
Q_ENUM(SystemTheme)
28
public
:
29
SystemTheme systemTheme()
const
;
30
31
Q_SIGNALS:
32
void
systemThemeChanged
();
33
protected
:
34
WindowStyleAgent
(
WindowStyleAgentPrivate
&d, QObject *parent =
nullptr
);
35
36
const
std::unique_ptr<WindowStyleAgentPrivate>
d_ptr
;
37
};
38
39
QX_WINDOW_END_NAMESPACE
40
41
#endif
// WINDOWSTYLEAGENT_H
QxWindow::WindowStyleAgentPrivate
Definition
windowstyleagent_p.h:19
QxWindow::WindowStyleAgent
WindowStyleAgent provides some features related to system theme.
Definition
windowstyleagent.h:14
QxWindow::WindowStyleAgent::SystemTheme
SystemTheme
Definition
windowstyleagent.h:21
QxWindow::WindowStyleAgent::Dark
@ Dark
Definition
windowstyleagent.h:24
QxWindow::WindowStyleAgent::Unknown
@ Unknown
Definition
windowstyleagent.h:22
QxWindow::WindowStyleAgent::Light
@ Light
Definition
windowstyleagent.h:23
QxWindow::WindowStyleAgent::HighContrast
@ HighContrast
Definition
windowstyleagent.h:25
QxWindow::WindowStyleAgent::d_ptr
const std::unique_ptr< WindowStyleAgentPrivate > d_ptr
Definition
windowstyleagent.h:36
QxWindow::WindowStyleAgent::systemThemeChanged
void systemThemeChanged()
This signal is emitted when the system theme changes.
qxwindow_global.h
QX_WINDOW_END_NAMESPACE
#define QX_WINDOW_END_NAMESPACE
Definition
qxwindow_global.h:63
QX_WINDOW_EXPORT
#define QX_WINDOW_EXPORT
Definition
qxwindow_global.h:72
QX_WINDOW_BEGIN_NAMESPACE
#define QX_WINDOW_BEGIN_NAMESPACE
Definition
qxwindow_global.h:60
src
libs
qxwindow
style
windowstyleagent.h
制作者
1.9.8