summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/plugins/src/styles/platinum/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/plugins/src/styles/platinum/main.cpp')
-rw-r--r--tqtinterface/qt4/plugins/src/styles/platinum/main.cpp34
1 files changed, 34 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 )