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

36 lines
542 B

#include <ntqstyleplugin.h>
#include <ntqcompactstyle.h>
class CompactStyle : public TQStylePlugin
{
public:
CompactStyle();
TQStringList keys() const;
TQStyle *create( const TQString& );
};
CompactStyle::CompactStyle()
: TQStylePlugin()
{
}
TQStringList CompactStyle::keys() const
{
TQStringList list;
list << "Compact";
return list;
}
TQStyle* CompactStyle::create( const TQString& s )
{
if ( s.lower() == "compact" )
return new TQCompactStyle();
return 0;
}
Q_EXPORT_PLUGIN( CompactStyle )