30PianoKeybdPlugin::PianoKeybdPlugin(
QObject *parent)
34void PianoKeybdPlugin::initialize(QDesignerFormEditorInterface * )
42bool PianoKeybdPlugin::isInitialized()
const
47QWidget *PianoKeybdPlugin::createWidget(QWidget *parent)
52QString PianoKeybdPlugin::name()
const
54 return QStringLiteral(
"drumstick::widgets::PianoKeybd");
57QString PianoKeybdPlugin::group()
const
59 return QStringLiteral(
"Drumstick");
62QIcon PianoKeybdPlugin::icon()
const
64 return QIcon(
":/vpiano-plugin.png");
67QString PianoKeybdPlugin::toolTip()
const
69 return QStringLiteral(
"Virtual Piano Keyboard");
72QString PianoKeybdPlugin::whatsThis()
const
74 return QStringLiteral(
"The Virtual Piano Keyboard is a MIDI controller emulator");
77bool PianoKeybdPlugin::isContainer()
const
82QString PianoKeybdPlugin::includeFile()
const
84 return QStringLiteral(
"<drumstick/pianokeybd.h>");
87QString PianoKeybdPlugin::domXml()
const
89 return "<ui language=\"c++\">\n"
90 " <widget class=\"drumstick::widgets::PianoKeybd\" name=\"pianoKeybd\">\n"
91 " <property name=\"geometry\">\n"
95 " <width>640</width>\n"
96 " <height>80</height>\n"
The QObject class is the base class of all Qt objects.
PianoKeybdPlugin class definition (Qt Designer plugin)