add new style class
This commit is contained in:
parent
e2d4ebd560
commit
bbe2248e57
|
@ -0,0 +1 @@
|
|||
#include "style.h"
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef STYLE_H
|
||||
#define STYLE_H
|
||||
|
||||
#include <QCommonStyle>
|
||||
|
||||
class Style : public QCommonStyle
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static Style &instance()
|
||||
{
|
||||
static Style instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
private:
|
||||
Style() {}
|
||||
|
||||
Style(Style const &);
|
||||
void operator=(Style const &);
|
||||
};
|
||||
|
||||
#endif // STYLE_H
|
|
@ -48,7 +48,8 @@ SOURCES += main.cpp\
|
|||
examples/avatarexamples.cpp \
|
||||
examples/menuexamples.cpp \
|
||||
components/menu.cpp \
|
||||
components/scrollbar.cpp
|
||||
components/scrollbar.cpp \
|
||||
lib/style.cpp
|
||||
|
||||
HEADERS += mainwindow.h \
|
||||
style.h \
|
||||
|
@ -90,4 +91,5 @@ HEADERS += mainwindow.h \
|
|||
examples/avatarexamples.h \
|
||||
examples/menuexamples.h \
|
||||
components/menu.h \
|
||||
components/scrollbar.h
|
||||
components/scrollbar.h \
|
||||
lib/style.h
|
||||
|
|
Loading…
Reference in New Issue