summaryrefslogtreecommitdiffstats
path: root/plugins/src/styles/sgi/main.cpp
blob: 73ad0ce1ee3a8b09f8976be10fd0a7c0040349d4 (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 <qsgistyle.h>

class SGIStyle : public QStylePlugin
{
public:
    SGIStyle();

    QStringList keys() const;
    QStyle *create( const QString& );
};

SGIStyle::SGIStyle()
: QStylePlugin()
{
}

QStringList SGIStyle::keys() const
{
    QStringList list;
    list << "SGI";
    return list;
}

QStyle* SGIStyle::create( const QString& s )
{
    if ( s.lower() == "sgi" )
        return new QSGIStyle();

    return 0;
}

Q_EXPORT_PLUGIN( SGIStyle )