![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QDesignerPromotionInterface provides functions for modifying the promoted classes in Designer. More...
#include <abstractpromotioninterface.h>
Classes | |
| class | PromotedClass |
| \inmodule QtDesigner A pair of database items containing the base class and the promoted class. More... | |
Public Types | |
| using | PromotedClasses = QList<PromotedClass> |
| A list of PromotedClass items. | |
Public Member Functions | |
| QDesignerPromotionInterface ()=default | |
| virtual | ~QDesignerPromotionInterface ()=default |
| virtual PromotedClasses | promotedClasses () const =0 |
| Returns a list of promoted classes along with their base classes in alphabetical order. | |
| virtual QSet< QString > | referencedPromotedClassNames () const =0 |
| Returns a set of promoted classed that are referenced by the currently opened forms. | |
| virtual bool | addPromotedClass (const QString &baseClass, const QString &className, const QString &includeFile, QString *errorMessage)=0 |
| Add a promoted class named with the base class and include file includeFile. | |
| virtual bool | removePromotedClass (const QString &className, QString *errorMessage)=0 |
| Remove the promoted class named className unless it is referenced by a form. | |
| virtual bool | changePromotedClassName (const QString &oldClassName, const QString &newClassName, QString *errorMessage)=0 |
| Change the class name of a promoted class from oldClassName to newClassName. | |
| virtual bool | setPromotedClassIncludeFile (const QString &className, const QString &includeFile, QString *errorMessage)=0 |
| Change the include file of a promoted class named className to be includeFile. | |
| virtual QList< QDesignerWidgetDataBaseItemInterface * > | promotionBaseClasses () const =0 |
| Return a list of base classes that are suitable for promotion. | |
The QDesignerPromotionInterface provides functions for modifying the promoted classes in Designer.
\inmodule QtDesigner
Definition at line 17 of file abstractpromotioninterface.h.
A list of PromotedClass items.
Definition at line 31 of file abstractpromotioninterface.h.
|
default |
|
virtualdefault |
|
pure virtual |
Add a promoted class named with the base class and include file includeFile.
Returns true on success or false along with an error message in errorMessage on failure.
Implemented in qdesigner_internal::QDesignerPromotion.
|
pure virtual |
Change the class name of a promoted class from oldClassName to newClassName.
Returns true on success or false along with an error message in errorMessage on failure.
Implemented in qdesigner_internal::QDesignerPromotion.
|
pure virtual |
Returns a list of promoted classes along with their base classes in alphabetical order.
It can be used to populate tree models for editing promoted widgets.
Implemented in qdesigner_internal::QDesignerPromotion.
|
pure virtual |
Return a list of base classes that are suitable for promotion.
Implemented in qdesigner_internal::QDesignerPromotion.
|
pure virtual |
Returns a set of promoted classed that are referenced by the currently opened forms.
Implemented in qdesigner_internal::QDesignerPromotion.
|
pure virtual |
Remove the promoted class named className unless it is referenced by a form.
Returns true on success or false along with an error message in errorMessage on failure.
Implemented in qdesigner_internal::QDesignerPromotion.
|
pure virtual |
Change the include file of a promoted class named className to be includeFile.
Returns true on success or false along with an error message in errorMessage on failure.
Implemented in qdesigner_internal::QDesignerPromotion.