equal
deleted
inserted
replaced
25 \brief Document loader. |
25 \brief Document loader. |
26 |
26 |
27 TS implementation of document loader. It is creating TS objects used in UI |
27 TS implementation of document loader. It is creating TS objects used in UI |
28 */ |
28 */ |
29 |
29 |
30 QObject *TsDocumentLoader::createObject(const QString &type, const QString &name) |
30 QObject *TsDocumentLoader::createObject(const QString &type, |
|
31 const QString &name) |
31 { |
32 { |
32 if (type == TsTasksGrid::staticMetaObject.className()) { |
33 if (type == TsTasksGrid::staticMetaObject.className()) { |
33 QObject *object = new TsTasksGrid(); |
34 QObject *object = new TsTasksGrid(); |
34 object->setObjectName(name); |
35 object->setObjectName(name); |
35 return object; |
36 return object; |