diff --git a/lib/style.cpp b/lib/style.cpp new file mode 100644 index 0000000..fed60ea --- /dev/null +++ b/lib/style.cpp @@ -0,0 +1 @@ +#include "style.h" diff --git a/lib/style.h b/lib/style.h new file mode 100644 index 0000000..9e0071f --- /dev/null +++ b/lib/style.h @@ -0,0 +1,24 @@ +#ifndef STYLE_H +#define STYLE_H + +#include + +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 diff --git a/qt-material-widgets.pro b/qt-material-widgets.pro index 907feb5..c998fb1 100644 --- a/qt-material-widgets.pro +++ b/qt-material-widgets.pro @@ -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