equal
deleted
inserted
replaced
51 mFileWatcher->addPaths(themePaths); |
51 mFileWatcher->addPaths(themePaths); |
52 } |
52 } |
53 |
53 |
54 connect(mFileWatcher, SIGNAL(directoryChanged(QString)), |
54 connect(mFileWatcher, SIGNAL(directoryChanged(QString)), |
55 this, SLOT(themeListChanged())); |
55 this, SLOT(themeListChanged())); |
56 |
56 |
57 // data for the list which appears after the themes: |
|
58 CpThemeInfo fetchFromStore; |
|
59 fetchFromStore.setName(hbTrId("txt_cp_list_get_more_tones")); |
|
60 fetchFromStore.setItemType(CpThemeInfo::ThemeListItemType_URL); |
|
61 fetchFromStore.setItemData(QString("http://lr.ovi.mobi/store/themes")); |
|
62 fetchFromStore.setIcon(HbIcon("qtg_large_ovistore")); |
|
63 mBottomThemeList.append(fetchFromStore); |
|
64 } |
57 } |
65 |
58 |
66 /* |
59 /* |
67 Destructor |
60 Destructor |
68 */ |
61 */ |
111 if (list) { |
104 if (list) { |
112 switch (role) { |
105 switch (role) { |
113 case Qt::DisplayRole: |
106 case Qt::DisplayRole: |
114 retVal = list->at(row).name(); |
107 retVal = list->at(row).name(); |
115 break; |
108 break; |
116 #ifdef CP_THEME_PREVIEW_DEFINED |
|
117 case Qt::DecorationRole: |
|
118 retVal = list->at(row).icon(); |
|
119 break; |
|
120 |
109 |
121 case PortraitPreviewRole: |
|
122 retVal = list->at(row).portraitPreviewIcon(); |
|
123 break; |
|
124 |
|
125 case LandscapePreviewRole: |
|
126 retVal = list->at(row).landscapePreviewIcon(); |
|
127 break; |
|
128 #endif |
|
129 case Qt::SizeHintRole: |
110 case Qt::SizeHintRole: |
130 retVal = list->at(row).icon().size(); |
111 retVal = list->at(row).icon().size(); |
131 break; |
112 break; |
132 |
113 |
133 case ItemDataRole: |
114 case ItemDataRole: |