equal
deleted
inserted
replaced
167 HsWidgetComponentParser componentParser(dir.absoluteFilePath(fileName)); |
167 HsWidgetComponentParser componentParser(dir.absoluteFilePath(fileName)); |
168 if ( !componentParser.error() ) { |
168 if ( !componentParser.error() ) { |
169 |
169 |
170 HsWidgetComponentDescriptor widgetDescriptor = componentParser.widgetComponentDescriptor(); |
170 HsWidgetComponentDescriptor widgetDescriptor = componentParser.widgetComponentDescriptor(); |
171 widgetDescriptor.library = manifestFilePath + "/" + widgetDescriptor.uri + ".dll"; |
171 widgetDescriptor.library = manifestFilePath + "/" + widgetDescriptor.uri + ".dll"; |
172 if (widgetDescriptor.iconUri.length() > 0 ) { |
172 if (widgetDescriptor.iconUri.length() > 0 && widgetDescriptor.iconUri.contains('.')) { |
173 widgetDescriptor.iconUri = manifestFilePath + "/" + widgetDescriptor.iconUri; |
173 widgetDescriptor.iconUri = manifestFilePath + "/" + widgetDescriptor.iconUri; |
174 } |
174 } |
175 if (widgetDescriptor.previewImage.length() > 0 ) { |
175 if (widgetDescriptor.previewImage.length() > 0 && widgetDescriptor.previewImage.contains('.')) { |
176 widgetDescriptor.previewImage = manifestFilePath + "/" + widgetDescriptor.previewImage; |
176 widgetDescriptor.previewImage = manifestFilePath + "/" + widgetDescriptor.previewImage; |
177 } |
177 } |
178 |
178 |
179 int widgetUid = dir.dirName().toUInt(0, 16); |
179 int widgetUid = dir.dirName().toUInt(0, 16); |
180 widgetDescriptor.uid = widgetUid; |
180 widgetDescriptor.uid = widgetUid; |