163 const QDesignerPropertySheetExtension* sheet,
167 case DomProperty::Set: {
168 const int index = sheet->indexOf(p->attributeName());
171 const QVariant sheetValue = sheet->property(index);
172 if (sheetValue.canConvert<PropertySheetFlagValue>()) {
175 v = f.metaFlags.parseFlags(p->elementSet(), &ok);
177 designerWarning(f.metaFlags.messageParseFailed(p->elementSet()));
182 case DomProperty::Enum: {
183 const int index = sheet->indexOf(p->attributeName());
186 const QVariant sheetValue = sheet->property(index);
187 if (sheetValue.canConvert<PropertySheetEnumValue>()) {
190 v = e.metaEnum.parseEnum(p->elementEnum(), &ok);
192 designerWarning(e.metaEnum.messageParseFailed(p->elementEnum()));