git-svn-id: svn://db.shs.com.ru/libs@646 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
69
qad/widgets/plugin/scroll_spin_boxplugin.cpp
Normal file
69
qad/widgets/plugin/scroll_spin_boxplugin.cpp
Normal file
@@ -0,0 +1,69 @@
|
||||
#include "scroll_spin_box.h"
|
||||
#include "scroll_spin_boxplugin.h"
|
||||
#include <QtCore/QtPlugin>
|
||||
|
||||
|
||||
ScrollSpinBoxPlugin::ScrollSpinBoxPlugin(QObject * parent): QObject(parent) {
|
||||
m_initialized = false;
|
||||
}
|
||||
|
||||
|
||||
void ScrollSpinBoxPlugin::initialize(QDesignerFormEditorInterface * /* core */) {
|
||||
if (m_initialized)
|
||||
return;
|
||||
|
||||
// Add extension registrations, etc. here
|
||||
|
||||
m_initialized = true;
|
||||
}
|
||||
|
||||
|
||||
bool ScrollSpinBoxPlugin::isInitialized() const {
|
||||
return m_initialized;
|
||||
}
|
||||
|
||||
|
||||
QWidget * ScrollSpinBoxPlugin::createWidget(QWidget * parent) {
|
||||
return new ScrollSpinBox(parent);
|
||||
}
|
||||
|
||||
|
||||
QString ScrollSpinBoxPlugin::name() const {
|
||||
return QLatin1String("ScrollSpinBox");
|
||||
}
|
||||
|
||||
|
||||
QString ScrollSpinBoxPlugin::group() const {
|
||||
return QLatin1String("Input Widgets");
|
||||
}
|
||||
|
||||
|
||||
QIcon ScrollSpinBoxPlugin::icon() const {
|
||||
return QIcon();
|
||||
}
|
||||
|
||||
|
||||
QString ScrollSpinBoxPlugin::toolTip() const {
|
||||
return QLatin1String("SpinBox with scroll");
|
||||
}
|
||||
|
||||
|
||||
QString ScrollSpinBoxPlugin::whatsThis() const {
|
||||
return QLatin1String("SpinBox with scroll");
|
||||
}
|
||||
|
||||
|
||||
bool ScrollSpinBoxPlugin::isContainer() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
QString ScrollSpinBoxPlugin::domXml() const {
|
||||
return QLatin1String("<widget class=\"ScrollSpinBox\" name=\"spin\">\n</widget>\n");
|
||||
}
|
||||
|
||||
|
||||
QString ScrollSpinBoxPlugin::includeFile() const {
|
||||
return QLatin1String("scroll_spin_box.h");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user