summaryrefslogtreecommitdiffstats
path: root/plugins/src/styles/compact
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/src/styles/compact')
-rw-r--r--plugins/src/styles/compact/compact.pro21
-rw-r--r--plugins/src/styles/compact/main.cpp35
2 files changed, 56 insertions, 0 deletions
diff --git a/plugins/src/styles/compact/compact.pro b/plugins/src/styles/compact/compact.pro
new file mode 100644
index 000000000..c746f2380
--- /dev/null
+++ b/plugins/src/styles/compact/compact.pro
@@ -0,0 +1,21 @@
+TEMPLATE = lib
+TARGET = qcompactstyle
+
+CONFIG += qt warn_off release plugin
+DESTDIR = ../../../styles
+
+HEADERS = ../../../../include/qcompactstyle.h
+
+SOURCES = main.cpp \
+ ../../../../src/styles/qcompactstyle.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
diff --git a/plugins/src/styles/compact/main.cpp b/plugins/src/styles/compact/main.cpp
new file mode 100644
index 000000000..ddee9c212
--- /dev/null
+++ b/plugins/src/styles/compact/main.cpp
@@ -0,0 +1,35 @@
+#include <qstyleplugin.h>
+#include <qcompactstyle.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;
+}
+
+
+Q_EXPORT_PLUGIN( CompactStyle )
+