diff options
Diffstat (limited to 'tqtinterface/qt4/plugins/src/styles/cde')
-rw-r--r-- | tqtinterface/qt4/plugins/src/styles/cde/cde.pro | 20 | ||||
-rw-r--r-- | tqtinterface/qt4/plugins/src/styles/cde/main.cpp | 33 |
2 files changed, 53 insertions, 0 deletions
diff --git a/tqtinterface/qt4/plugins/src/styles/cde/cde.pro b/tqtinterface/qt4/plugins/src/styles/cde/cde.pro new file mode 100644 index 0000000..6aa8abc --- /dev/null +++ b/tqtinterface/qt4/plugins/src/styles/cde/cde.pro @@ -0,0 +1,20 @@ +TEMPLATE = lib +TARGET = qcdestyle + +CONFIG += qt warn_off release plugin +DESTDIR = ../../../styles + +HEADERS = ../../../../include/tqcdestyle.h +SOURCES = main.cpp \ + ../../../../src/styles/tqcdestyle.cpp + +!tqcontains(styles, motif) { + HEADERS += ../../../../include/tqmotifstyle.h + SOURCES += ../../../../src/styles/tqmotifstyle.cpp +} + +unix:OBJECTS_DIR = .obj +win32:OBJECTS_DIR = obj + +target.path += $$plugins.path/styles +INSTALLS += target diff --git a/tqtinterface/qt4/plugins/src/styles/cde/main.cpp b/tqtinterface/qt4/plugins/src/styles/cde/main.cpp new file mode 100644 index 0000000..a079a82 --- /dev/null +++ b/tqtinterface/qt4/plugins/src/styles/cde/main.cpp @@ -0,0 +1,33 @@ +#include <tqstyleplugin.h> +#include <tqcdestyle.h> + +class CDEStyle : public TQStylePlugin +{ +public: + CDEStyle(); + + TQStringList keys() const; + TQStyle *create( const TQString& ); +}; + +CDEStyle::CDEStyle() +: TQStylePlugin() +{ +} + +TQStringList CDEStyle::keys() const +{ + TQStringList list; + list << "CDE"; + return list; +} + +TQStyle* CDEStyle::create( const TQString& s ) +{ + if ( s.lower() == "cde" ) + return new TQCDEStyle(); + + return 0; +} + +TQ_EXPORT_PLUGIN( CDEStyle ) |