git-svn-id: svn://db.shs.com.ru/libs@1 a8b55f48-bf90-11e4-a774-851b48703e85
70 lines
1.2 KiB
C++
70 lines
1.2 KiB
C++
#include "historyview.h"
|
|
#include "historyviewplugin.h"
|
|
#include <QtCore/QtPlugin>
|
|
|
|
|
|
HistoryViewPlugin::HistoryViewPlugin(QObject * parent): QObject(parent) {
|
|
m_initialized = false;
|
|
}
|
|
|
|
|
|
void HistoryViewPlugin::initialize(QDesignerFormEditorInterface * /* core */) {
|
|
if (m_initialized)
|
|
return;
|
|
|
|
// Add extension registrations, etc. here
|
|
|
|
m_initialized = true;
|
|
}
|
|
|
|
|
|
bool HistoryViewPlugin::isInitialized() const {
|
|
return m_initialized;
|
|
}
|
|
|
|
|
|
QWidget * HistoryViewPlugin::createWidget(QWidget * parent) {
|
|
return new HistoryView(parent);
|
|
}
|
|
|
|
|
|
QString HistoryViewPlugin::name() const {
|
|
return QLatin1String("HistoryView");
|
|
}
|
|
|
|
|
|
QString HistoryViewPlugin::group() const {
|
|
return QLatin1String("Display Widgets");
|
|
}
|
|
|
|
|
|
QIcon HistoryViewPlugin::icon() const {
|
|
return QIcon(":/icons/historyview.png");
|
|
}
|
|
|
|
|
|
QString HistoryViewPlugin::toolTip() const {
|
|
return QLatin1String("");
|
|
}
|
|
|
|
|
|
QString HistoryViewPlugin::whatsThis() const {
|
|
return QLatin1String("");
|
|
}
|
|
|
|
|
|
bool HistoryViewPlugin::isContainer() const {
|
|
return true;
|
|
}
|
|
|
|
|
|
QString HistoryViewPlugin::domXml() const {
|
|
return QLatin1String("<widget class=\"HistoryView\" name=\"historyView\">\n</widget>\n");
|
|
}
|
|
|
|
|
|
QString HistoryViewPlugin::includeFile() const {
|
|
return QLatin1String("historyview.h");
|
|
}
|
|
|