-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathopenchartplugin.cpp
73 lines (58 loc) · 1.29 KB
/
openchartplugin.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include "openchart.h"
#include "openchartplugin.h"
#include <QtPlugin>
OpenChartPlugin::OpenChartPlugin(QObject *parent)
: QObject(parent)
{
m_initialized = false;
}
void OpenChartPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
if (m_initialized)
return;
// Add extension registrations, etc. here
m_initialized = true;
}
bool OpenChartPlugin::isInitialized() const
{
return m_initialized;
}
QWidget *OpenChartPlugin::createWidget(QWidget *parent)
{
return new OpenChart(parent);
}
QString OpenChartPlugin::name() const
{
return QLatin1String("OpenChart");
}
QString OpenChartPlugin::group() const
{
return QLatin1String("");
}
QIcon OpenChartPlugin::icon() const
{
return QIcon();
}
QString OpenChartPlugin::toolTip() const
{
return QLatin1String("");
}
QString OpenChartPlugin::whatsThis() const
{
return QLatin1String("");
}
bool OpenChartPlugin::isContainer() const
{
return false;
}
QString OpenChartPlugin::domXml() const
{
return QLatin1String("<widget class=\"OpenChart\" name=\"openChart\">\n</widget>\n");
}
QString OpenChartPlugin::includeFile() const
{
return QLatin1String("openchart.h");
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(openchartplugin, OpenChartPlugin)
#endif // QT_VERSION < 0x050000