diff options
Diffstat (limited to 'plugins/src/styles/platinum')
-rw-r--r-- | plugins/src/styles/platinum/main.cpp | 34 | ||||
-rw-r--r-- | plugins/src/styles/platinum/platinum.pro | 20 |
2 files changed, 54 insertions, 0 deletions
diff --git a/plugins/src/styles/platinum/main.cpp b/plugins/src/styles/platinum/main.cpp new file mode 100644 index 000000000..c7ad26912 --- /dev/null +++ b/plugins/src/styles/platinum/main.cpp @@ -0,0 +1,34 @@ +#include <qplatinumstyle.h> +#include <qstyleplugin.h> + +class PlatinumStyle : public TQStylePlugin +{ +public: + PlatinumStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); +}; + +PlatinumStyle::PlatinumStyle() +: TQStylePlugin() +{ +} + +TQStringList PlatinumStyle::keys() const +{ + TQStringList list; + list << "Platinum"; + return list; +} + +TQStyle* PlatinumStyle::create( const TQString& s ) +{ + if ( s.lower() == "platinum" ) + return new TQPlatinumStyle(); + + return 0; +} + + +Q_EXPORT_PLUGIN( PlatinumStyle ) diff --git a/plugins/src/styles/platinum/platinum.pro b/plugins/src/styles/platinum/platinum.pro new file mode 100644 index 000000000..23fe42955 --- /dev/null +++ b/plugins/src/styles/platinum/platinum.pro @@ -0,0 +1,20 @@ +TEMPLATE = lib +TARGET = qplatinumstyle + +CONFIG += qt warn_off release plugin +DESTDIR = ../../../styles + +HEADERS = ../../../../include/qplatinumstyle.h +SOURCES = main.cpp \ + ../../../../src/styles/qplatinumstyle.cpp + +!contains(styles, windows) { + HEADERS += ../../../../include/qwindowsstyle.h + SOURCES += ../../../../src/styles/qwindowsstyle.cpp +} + +unix:OBJECTS_DIR = .obj +win32:OBJECTS_DIR = obj + +target.path += $$plugins.path/styles +INSTALLS += target |