You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tqt3/plugins/src/styles/motifplus/main.cpp

36 lines
557 B

#include <ntqstyleplugin.h>
#include <ntqmotifplusstyle.h>
class MotifPlusStyle : public TQStylePlugin
{
public:
MotifPlusStyle();
TQStringList keys() const;
TQStyle *create( const TQString& );
};
MotifPlusStyle::MotifPlusStyle()
: TQStylePlugin()
{
}
TQStringList MotifPlusStyle::keys() const
{
TQStringList list;
list << "MotifPlus";
return list;
}
TQStyle* MotifPlusStyle::create( const TQString& s )
{
if ( s.lower() == "motifplus" )
return new TQMotifPlusStyle();
return 0;
}
Q_EXPORT_PLUGIN( MotifPlusStyle )