30 static PropertyNameTypeMap propertyNameTypeMap;
31 if (propertyNameTypeMap.isEmpty()) {
32 const StringPropertyParameters richtext(ValidationRichText,
true);
34 propertyNameTypeMap.insert(u"accessibleDescription"_s, richtext);
35 propertyNameTypeMap.insert(u"accessibleName"_s, richtext);
37 const StringPropertyParameters objectName(ValidationObjectName,
false);
38 propertyNameTypeMap.insert(u"buddy"_s, objectName);
39 propertyNameTypeMap.insert(u"currentItemName"_s, objectName);
40 propertyNameTypeMap.insert(u"currentPageName"_s, objectName);
41 propertyNameTypeMap.insert(u"currentTabName"_s, objectName);
42 propertyNameTypeMap.insert(u"layoutName"_s, objectName);
43 propertyNameTypeMap.insert(u"spacerName"_s, objectName);
45 propertyNameTypeMap.insert(u"styleSheet"_s, StringPropertyParameters(ValidationStyleSheet,
false));
47 const StringPropertyParameters multiline(ValidationMultiLine,
true);
48 propertyNameTypeMap.insert(u"description"_s, multiline);
49 propertyNameTypeMap.insert(u"iconText"_s, multiline);
51 propertyNameTypeMap.insert(u"toolTip"_s, richtext);
52 propertyNameTypeMap.insert(u"whatsThis"_s, richtext);
53 propertyNameTypeMap.insert(u"windowIconText"_s, richtext);
54 propertyNameTypeMap.insert(u"html"_s, richtext);
56 propertyNameTypeMap.insert(u"pageId"_s, StringPropertyParameters(ValidationSingleLine,
false));
58 propertyNameTypeMap.insert(u"plainText"_s, StringPropertyParameters(ValidationMultiLine,
true));
60 return propertyNameTypeMap;
72 const QString &propertyName)
74 if (
const QDesignerDynamicPropertySheetExtension *dynamicSheet = qt_extension<QDesignerDynamicPropertySheetExtension*>(core->extensionManager(), object)) {
75 if (dynamicSheet->dynamicPropertiesAllowed()) {
76 if (QDesignerPropertySheetExtension *propertySheet = qt_extension<QDesignerPropertySheetExtension*>(core->extensionManager(), object)) {
77 const int index = propertySheet->indexOf(propertyName);
78 return index >= 0 && dynamicSheet->isDynamicProperty(index);