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>()) {
175 const auto flags = f.metaFlags.parseFlags(p->elementSet());
177 designerWarning(f.metaFlags.messageParseFailed(p->elementSet()));
178 v = flags.value_or(0);
183 case DomProperty::Enum: {
184 const int index = sheet->indexOf(p->attributeName());
187 const QVariant sheetValue = sheet->property(index);
188 if (sheetValue.canConvert<PropertySheetEnumValue>()) {
190 const auto value = e.metaEnum.parseEnum(p->elementEnum());
192 designerWarning(e.metaEnum.messageParseFailed(p->elementEnum()));
193 v = value.value_or(0);