RabbitCommon
v2.3.3
Loading...
Searching...
No Matches
Src
Style
Style.h
1
6
#ifndef CSTYLE_H
7
#define CSTYLE_H
8
9
#pragma once
10
11
#include <QObject>
12
#include <QtGlobal>
13
14
#include "FrmStyle.h"
15
16
namespace
RabbitCommon
{
17
22
class
CStyle
:
public
QObject
23
{
24
Q_OBJECT
25
public
:
26
static
CStyle
* Instance();
27
31
int
LoadStyle
();
32
33
private
:
34
QString GetStyle();
35
QString GetDefaultStyle();
36
41
int
LoadStyle
(
const
QString &szFile);
42
void
SetFile(
const
QString& file);
43
QString GetStyleFile();
44
45
private
:
46
CStyle
(QObject *parent =
nullptr
);
47
48
QString m_szDefaultFile;
49
QString m_szFile;
50
51
QString m_szDefaultIconTheme;
52
QString m_szDefaultFallbackIconTheme;
53
54
friend
CFrmStyle
;
55
};
56
57
}
//namespace RabbitCommon
58
59
#endif
// CSTYLE_H
CFrmStyle
Set style and icon theme form.
Definition
FrmStyle.h:89
RabbitCommon::CStyle
The CStyle class.
Definition
Style.h:23
RabbitCommon::CStyle::LoadStyle
int LoadStyle()
Load style from configure file.
Definition
Style.cpp:69
RabbitCommon
Definition
adminauthoriser.h:11
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力