summaryrefslogtreecommitdiffstats
path: root/plugins/src/styles/cde/main.cpp
blob: 97892cbac14347a64d6f1d3ac09a3a2199bad718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <qstyleplugin.h>
#include <qcdestyle.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;
}

Q_EXPORT_PLUGIN( CDEStyle )