equal
deleted
inserted
replaced
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 #include "cpcategorysettingformitemdata.h" |
17 #include "cpcategorysettingformitemdata.h" |
18 #include <QString> |
18 #include <QString> |
19 #include "cputility.h" |
19 #include "cpcategorymodelutility.h" |
20 |
20 |
21 class CpCategorySettingFormItemDataPrivate |
21 class CpCategorySettingFormItemDataPrivate |
22 { |
22 { |
23 public: |
23 public: |
24 CpCategorySettingFormItemDataPrivate(const QString &configFile) : |
24 CpCategorySettingFormItemDataPrivate(const QString &configFile) : |
62 |
62 |
63 void CpCategorySettingFormItemData::initialize(CpItemDataHelper &itemDataHelper) |
63 void CpCategorySettingFormItemData::initialize(CpItemDataHelper &itemDataHelper) |
64 { |
64 { |
65 //avoid to be called twice |
65 //avoid to be called twice |
66 if (!d->mInitialized) { |
66 if (!d->mInitialized) { |
67 //give derived class a change do their special things before loading config plugins |
67 //give derived class a chance do their special things before loading config plugins |
68 beforeLoadingConfigPlugins(itemDataHelper); |
68 beforeLoadingConfigPlugins(itemDataHelper); |
|
69 |
|
70 int pluginItemStartPosition = childCount(); |
|
71 //give derived class a chance do their special things after loading config plugins |
|
72 afterLoadingConfigPlugins(itemDataHelper); |
|
73 |
69 //load plugins which are configured |
74 //load plugins which are configured |
70 CpUtility::buildConfigPluginItems(this,d->mConfigFile,itemDataHelper); |
75 CpCategoryModelUtility::buildConfigPluginItems( |
71 //give derived class a change do their special things after loading config plugins |
76 this, |
72 afterLoadingConfigPlugins(itemDataHelper); |
77 d->mConfigFile, |
73 |
78 itemDataHelper, |
|
79 pluginItemStartPosition); |
|
80 |
74 d->mInitialized = true; |
81 d->mInitialized = true; |
75 } |
82 } |
76 } |
83 } |
77 |
84 |
78 |
85 |