164 const QDesignerPropertySheetExtension* sheet,
168 case DomProperty::Set: {
169 const int index = sheet->indexOf(p->attributeName());
172 const QVariant sheetValue = sheet->property(index);
173 if (sheetValue.canConvert<PropertySheetFlagValue>()) {
176 v = f.metaFlags.parseFlags(p->elementSet(), &ok);
178 designerWarning(f.metaFlags.messageParseFailed(p->elementSet()));
183 case DomProperty::Enum: {
184 const int index = sheet->indexOf(p->attributeName());
187 const QVariant sheetValue = sheet->property(index);
188 if (sheetValue.canConvert<PropertySheetEnumValue>()) {
191 v = e.metaEnum.parseEnum(p->elementEnum(), &ok);
193 designerWarning(e.metaEnum.messageParseFailed(p->elementEnum()));