diff options
Diffstat (limited to 'tqtinterface/qt4/plugins/src/styles/compact')
-rw-r--r-- | tqtinterface/qt4/plugins/src/styles/compact/compact.pro | 21 | ||||
-rw-r--r-- | tqtinterface/qt4/plugins/src/styles/compact/main.cpp | 35 |
2 files changed, 56 insertions, 0 deletions
diff --git a/tqtinterface/qt4/plugins/src/styles/compact/compact.pro b/tqtinterface/qt4/plugins/src/styles/compact/compact.pro new file mode 100644 index 0000000..ce5af7a --- /dev/null +++ b/tqtinterface/qt4/plugins/src/styles/compact/compact.pro @@ -0,0 +1,21 @@ +TEMPLATE = lib +TARGET = qcompactstyle + +CONFIG += qt warn_off release plugin +DESTDIR = ../../../styles + +HEADERS = ../../../../include/tqcompactstyle.h + +SOURCES = main.cpp \ + ../../../../src/styles/tqcompactstyle.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 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 ) + |