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/platinum/main.cpp

35 lines
548 B

#include <qplatinumstyle.h>
#include <qstyleplugin.h>
class PlatinumStyle : public TQStylePlugin
{
public:
PlatinumStyle();
TQStringList keys() const;
TQStyle *create( const TQString& );
};
PlatinumStyle::PlatinumStyle()
: TQStylePlugin()
{
}
TQStringList PlatinumStyle::keys() const
{
TQStringList list;
list << "Platinum";
return list;
}
TQStyle* PlatinumStyle::create( const TQString& s )
{
if ( s.lower() == "platinum" )
return new TQPlatinumStyle();
return 0;
}
Q_EXPORT_PLUGIN( PlatinumStyle )