Here it is :
#include "ColorChooserPlugin.h"
#include ".\\..\\WidgetSource\\ColorChooser.h"
CColorChooserPlugin::CColorChooserPlugin()
:QWidgetPlugin()
{
}
{
list << "CColorChooserPlugin";
return list;
}
QWidget* CColorChooserPlugin
::create(const QString
& key,
QWidget* parent,
const char* name
) {
if( key == "CColorChooserPlugin" )
return new CColorChooser(parent, name);
return 0;
}
QString CColorChooserPlugin
::includeFile(const QString
& feature
) const {
if( feature == "CColorChooserPlugin" )
return "ColorChooser.h";
}
QString CColorChooserPlugin
::group(const QString
& feature
) const {
if( feature == "CColorChooserPlugin" )
return "Custom Widgets";
}
QIconSet CColorChooserPlugin::iconSet(const QString& feature) const
{
return QIconSet
( QPixmap("colorchooser_pixmap.png"));
}
QString CColorChooserPlugin
::toolTip(const QString
& feature
) const {
if( feature == "CColorChooserPlugin" )
return "Color Chooser Widget";
}
QString CColorChooserPlugin
::whatsThis(const QString
& feature
) const {
if( feature == "CColorChooserPlugin" )
return "A widget to choose a color";
}
bool CColorChooserPlugin::isContainer(const QString& feature) const
{
return FALSE;
}
Q_EXPORT_PLUGIN( CColorChooserPlugin );
#include "ColorChooserPlugin.h"
#include ".\\..\\WidgetSource\\ColorChooser.h"
CColorChooserPlugin::CColorChooserPlugin()
:QWidgetPlugin()
{
}
QStringList CColorChooserPlugin::keys() const
{
QStringList list;
list << "CColorChooserPlugin";
return list;
}
QWidget* CColorChooserPlugin::create(const QString& key, QWidget* parent, const char* name)
{
if( key == "CColorChooserPlugin" )
return new CColorChooser(parent, name);
return 0;
}
QString CColorChooserPlugin::includeFile(const QString& feature) const
{
if( feature == "CColorChooserPlugin" )
return "ColorChooser.h";
return QString::null;
}
QString CColorChooserPlugin::group(const QString& feature) const
{
if( feature == "CColorChooserPlugin" )
return "Custom Widgets";
return QString::null;
}
QIconSet CColorChooserPlugin::iconSet(const QString& feature) const
{
return QIconSet( QPixmap("colorchooser_pixmap.png"));
}
QString CColorChooserPlugin::toolTip(const QString& feature) const
{
if( feature == "CColorChooserPlugin" )
return "Color Chooser Widget";
return QString::null;
}
QString CColorChooserPlugin::whatsThis(const QString& feature) const
{
if( feature == "CColorChooserPlugin" )
return "A widget to choose a color";
return QString::null;
}
bool CColorChooserPlugin::isContainer(const QString& feature) const
{
return FALSE;
}
Q_EXPORT_PLUGIN( CColorChooserPlugin );
To copy to clipboard, switch view to plain text mode
Bookmarks