20 Q_DISABLE_COPY_MOVE(QDesignerPromotionInterface)
22 QDesignerPromotionInterface() =
default;
23 virtual ~QDesignerPromotionInterface() =
default;
27 QDesignerWidgetDataBaseItemInterface *baseItem;
28 QDesignerWidgetDataBaseItemInterface *promotedItem;
31 using PromotedClasses = QList<PromotedClass>;
33 virtual PromotedClasses promotedClasses()
const = 0;
35 virtual QSet<QString> referencedPromotedClassNames()
const = 0;
37 virtual bool addPromotedClass(
const QString &baseClass,
38 const QString &className,
39 const QString &includeFile,
40 QString *errorMessage) = 0;
42 virtual bool removePromotedClass(
const QString &className, QString *errorMessage) = 0;
44 virtual bool changePromotedClassName(
const QString &oldClassName,
const QString &newClassName, QString *errorMessage) = 0;
46 virtual bool setPromotedClassIncludeFile(
const QString &className,
const QString &includeFile, QString *errorMessage) = 0;
48 virtual QList<QDesignerWidgetDataBaseItemInterface *> promotionBaseClasses()
const = 0;