55
|
1 |
|
|
2 |
|
|
3 |
#include "secondpluginfortest.h"
|
|
4 |
#include "secondpluginviewfortest.h"
|
|
5 |
#include <cpsettingformentryitemdataimpl.h>
|
|
6 |
|
|
7 |
SecondPluginForTest::SecondPluginForTest()
|
|
8 |
{
|
|
9 |
}
|
|
10 |
|
|
11 |
SecondPluginForTest::~SecondPluginForTest()
|
|
12 |
{
|
|
13 |
}
|
|
14 |
QList<CpSettingFormItemData*> SecondPluginForTest::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
|
|
15 |
{
|
|
16 |
return QList<CpSettingFormItemData*>()
|
|
17 |
<< new CpSettingFormEntryItemDataImpl<SecondPluginViewForTest>(
|
|
18 |
itemDataHelper,
|
|
19 |
tr("The plugin for test"),
|
|
20 |
tr("TestPlugin."));
|
|
21 |
}
|
|
22 |
|
|
23 |
CpBaseSettingView *SecondPluginForTest::createSettingView(const QVariant &hint) const
|
|
24 |
{
|
|
25 |
SecondPluginViewForTest *pView = new SecondPluginViewForTest();
|
|
26 |
return pView;
|
|
27 |
}
|
|
28 |
|
|
29 |
Q_EXPORT_PLUGIN2(SecondPluginForTest, SecondPluginForTest);
|