equal
deleted
inserted
replaced
14 * Description: |
14 * Description: |
15 * Implementation file for class ClockSettingsDocLoader. |
15 * Implementation file for class ClockSettingsDocLoader. |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 // System includes. |
|
20 #include <QDebug> |
|
21 |
|
22 // User includes |
19 // User includes |
23 #include "clocksettingsdocloader.h" |
20 #include "clocksettingsdocloader.h" |
24 #include "clocksettingsdefines.h" |
21 #include "clocksettingsdefines.h" |
25 #include "skinnableclock.h" |
|
26 #include "clocksettingsview.h" |
22 #include "clocksettingsview.h" |
27 |
23 |
28 /*! |
24 /*! |
29 \class ClockSettingsDocLoader |
25 \class ClockSettingsDocLoader |
30 |
26 |
37 |
33 |
38 \return QObject* Pointer to the created object |
34 \return QObject* Pointer to the created object |
39 */ |
35 */ |
40 QObject *ClockSettingsDocLoader::createObject(const QString &type, const QString &name) |
36 QObject *ClockSettingsDocLoader::createObject(const QString &type, const QString &name) |
41 { |
37 { |
42 qDebug() << "clock: ClockSettingsDocLoader::createObject -->"; |
|
43 |
|
44 if (CLOCK_WIDGET == name) { |
|
45 QObject *object = new SkinnableClock(); |
|
46 object->setObjectName(name); |
|
47 return object; |
|
48 } |
|
49 |
|
50 qDebug() << "clock: ClockSettingsDocLoader::createObject <--"; |
|
51 |
|
52 return HbDocumentLoader::createObject(type, name); |
38 return HbDocumentLoader::createObject(type, name); |
53 } |
39 } |
54 |
40 |
55 // End of file --Don't remove this. |
41 // End of file --Don't remove this. |