add new style class

This commit is contained in:
laserpants 2016-04-24 14:36:28 +03:00
parent e2d4ebd560
commit bbe2248e57
3 changed files with 29 additions and 2 deletions

1
lib/style.cpp Normal file
View File

@ -0,0 +1 @@
#include "style.h"

24
lib/style.h Normal file
View File

@ -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

View File

@ -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