equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <QObject> |
|
20 #include <hbdocumentloader.h> |
|
21 #include "cntdocumentloader.h" |
|
22 #include "cnteditviewheadingitem.h" |
|
23 |
|
24 CntDocumentLoader::CntDocumentLoader() |
|
25 { |
|
26 } |
|
27 |
|
28 CntDocumentLoader::~CntDocumentLoader() |
|
29 { |
|
30 } |
|
31 |
|
32 QObject *CntDocumentLoader::createObject(const QString &type, const QString &name) |
|
33 { |
|
34 QObject *result = 0; |
|
35 |
|
36 if (type == "CntEditViewHeadingItem") |
|
37 { |
|
38 result = new CntEditViewHeadingItem(); |
|
39 if (result) |
|
40 { |
|
41 result->setObjectName(name); |
|
42 } |
|
43 } |
|
44 else |
|
45 { |
|
46 result = HbDocumentLoader::createObject(type,name); |
|
47 } |
|
48 |
|
49 return result; |
|
50 } |
|
51 |
|
52 |
|
53 // EOF |