summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/plugins/src/styles/platinum
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:17:53 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 15:17:53 -0500
commitdda8474928bd7276e1fad8fb7a601e7c83ff2bc2 (patch)
tree7f83910598b33b12730035f086df20b5a53ab99c /tqtinterface/qt4/plugins/src/styles/platinum
parent6260b6178868c03aab1644bf93b0ef043654bdb0 (diff)
downloadexperimental-dda8474928bd7276e1fad8fb7a601e7c83ff2bc2.tar.gz
experimental-dda8474928bd7276e1fad8fb7a601e7c83ff2bc2.zip
Added TQt4 HEAD
Diffstat (limited to 'tqtinterface/qt4/plugins/src/styles/platinum')
-rw-r--r--tqtinterface/qt4/plugins/src/styles/platinum/main.cpp34
-rw-r--r--tqtinterface/qt4/plugins/src/styles/platinum/platinum.pro20
2 files changed, 54 insertions, 0 deletions
diff --git a/tqtinterface/qt4/plugins/src/styles/platinum/main.cpp b/tqtinterface/qt4/plugins/src/styles/platinum/main.cpp
new file mode 100644
index 0000000..aaf1689
--- /dev/null
+++ b/tqtinterface/qt4/plugins/src/styles/platinum/main.cpp
@@ -0,0 +1,34 @@
+#include <tqplatinumstyle.h>
+#include <tqstyleplugin.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;
+}
+
+
+TQ_EXPORT_PLUGIN( PlatinumStyle )
diff --git a/tqtinterface/qt4/plugins/src/styles/platinum/platinum.pro b/tqtinterface/qt4/plugins/src/styles/platinum/platinum.pro
new file mode 100644
index 0000000..486faeb
--- /dev/null
+++ b/tqtinterface/qt4/plugins/src/styles/platinum/platinum.pro
@@ -0,0 +1,20 @@
+TEMPLATE = lib
+TARGET = qplatinumstyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/tqplatinumstyle.h
+SOURCES = main.cpp \
+ ../../../../src/styles/tqplatinumstyle.cpp
+
+!tqcontains(styles, windows) {
+ HEADERS += ../../../../include/tqwindowsstyle.h
+ SOURCES += ../../../../src/styles/tqwindowsstyle.cpp
+}
+
+unix:OBJECTS_DIR = .obj
+win32:OBJECTS_DIR = obj
+
+target.path += $$plugins.path/styles
+INSTALLS += target