Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
abstractpromotioninterface.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
5
7/*!
8 \class QDesignerPromotionInterface
9
10 \brief The QDesignerPromotionInterface provides functions for modifying
11 the promoted classes in Designer.
12 \inmodule QtDesigner
13 \internal
14 \since 4.3
15*/
16
17/*!
18 \class QDesignerPromotionInterface::PromotedClass
19 \inmodule QtDesigner
20 A pair of database items containing the base class and the promoted class.
21*/
22
23/*!
24 \typedef QDesignerPromotionInterface::PromotedClasses
25 A list of PromotedClass items.
26*/
27
28/*!
29 \fn QDesignerPromotionInterface::PromotedClasses QDesignerPromotionInterface::promotedClasses() const
30
31 Returns a list of promoted classes along with their base classes in alphabetical order.
32 It can be used to populate tree models for editing promoted widgets.
33*/
34
35/*!
36 \fn virtual QSet<QString> QDesignerPromotionInterface::referencedPromotedClassNames() const
37
38 Returns a set of promoted classed that are referenced by the currently opened forms.
39*/
40
41/*!
42 \fn virtual bool QDesignerPromotionInterface::addPromotedClass(const QString &baseClass, const QString &className, const QString &includeFile, QString *errorMessage)
43
44 Add a promoted class named \a with the base class \a and include file \a includeFile. Returns \c true on success or \c false along
45 with an error message in \a errorMessage on failure.
46*/
47
48/*!
49 \fn virtual bool QDesignerPromotionInterface::removePromotedClass(const QString &className, QString *errorMessage)
50
51 Remove the promoted class named \a className unless it is referenced by a form. Returns \c true on success or \c false along
52 with an error message in \a errorMessage on failure.
53*/
54
55/*!
56 \fn virtual bool QDesignerPromotionInterface::changePromotedClassName(const QString &oldClassName, const QString &newClassName, QString *errorMessage)
57
58 Change the class name of a promoted class from \a oldClassName to \a newClassName. Returns \c true on success or \c false along
59 with an error message in \a errorMessage on failure.
60*/
61
62/*!
63 \fn virtual bool QDesignerPromotionInterface::setPromotedClassIncludeFile(const QString &className, const QString &includeFile, QString *errorMessage)
64
65 Change the include file of a promoted class named \a className to be \a includeFile. Returns \c true on success or \c false along
66 with an error message in \a errorMessage on failure.
67*/
68
69/*! \fn virtual QList<QDesignerWidgetDataBaseItemInterface *> QDesignerPromotionInterface::promotionBaseClasses() const
70
71 Return a list of base classes that are suitable for promotion.
72*/
73
74QT_END_NAMESPACE
Combined button and popup list for selecting options.