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
552 B

#include <ntqplatinumstyle.h>
#include <ntqstyleplugin.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 )