diff options
Diffstat (limited to 'tqtinterface/qt4/plugins/src/styles/cde/main.cpp')
-rw-r--r-- | tqtinterface/qt4/plugins/src/styles/cde/main.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
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 ) |