summaryrefslogtreecommitdiffstats
path: root/plugins/src/styles/cde/main.cpp
blob: 014bfbcfb6186751f6f8cbe02738b79589cea701 (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 <ntqstyleplugin.h>
#include <ntqcdestyle.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 )