summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/plugins/src/styles/compact/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/plugins/src/styles/compact/main.cpp')
-rw-r--r--tqtinterface/qt4/plugins/src/styles/compact/main.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/tqtinterface/qt4/plugins/src/styles/compact/main.cpp b/tqtinterface/qt4/plugins/src/styles/compact/main.cpp
new file mode 100644
index 0000000..8d63589
--- /dev/null
+++ b/tqtinterface/qt4/plugins/src/styles/compact/main.cpp
@@ -0,0 +1,35 @@
+#include <tqstyleplugin.h>
+#include <tqcompactstyle.h>
+
+class CompactStyle : public TQStylePlugin
+{
+public:
+ CompactStyle();
+
+ TQStringList keys() const;
+ TQStyle *create( const TQString& );
+};
+
+CompactStyle::CompactStyle()
+: TQStylePlugin()
+{
+}
+
+TQStringList CompactStyle::keys() const
+{
+ TQStringList list;
+ list << "Compact";
+ return list;
+}
+
+TQStyle* CompactStyle::create( const TQString& s )
+{
+ if ( s.lower() == "compact" )
+ return new TQCompactStyle();
+
+ return 0;
+}
+
+
+TQ_EXPORT_PLUGIN( CompactStyle )
+