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
// Qt-Security score:significant reason:default
4
5
#
include
"abstractpromotioninterface.h"
6
7
QT_BEGIN_NAMESPACE
8
/*!
9
\class QDesignerPromotionInterface
10
11
\brief The QDesignerPromotionInterface provides functions for modifying
12
the promoted classes in Designer.
13
\inmodule QtDesigner
14
\internal
15
\since 4.3
16
*/
17
18
/*!
19
\class QDesignerPromotionInterface::PromotedClass
20
\inmodule QtDesigner
21
A pair of database items containing the base class and the promoted class.
22
*/
23
24
/*!
25
\typedef QDesignerPromotionInterface::PromotedClasses
26
A list of PromotedClass items.
27
*/
28
29
/*!
30
\fn QDesignerPromotionInterface::PromotedClasses QDesignerPromotionInterface::promotedClasses() const
31
32
Returns a list of promoted classes along with their base classes in alphabetical order.
33
It can be used to populate tree models for editing promoted widgets.
34
*/
35
36
/*!
37
\fn virtual QSet<QString> QDesignerPromotionInterface::referencedPromotedClassNames() const
38
39
Returns a set of promoted classed that are referenced by the currently opened forms.
40
*/
41
42
/*!
43
\fn virtual bool QDesignerPromotionInterface::addPromotedClass(const QString &baseClass, const QString &className, const QString &includeFile, QString *errorMessage)
44
45
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
46
with an error message in \a errorMessage on failure.
47
*/
48
49
/*!
50
\fn virtual bool QDesignerPromotionInterface::removePromotedClass(const QString &className, QString *errorMessage)
51
52
Remove the promoted class named \a className unless it is referenced by a form. Returns \c true on success or \c false along
53
with an error message in \a errorMessage on failure.
54
*/
55
56
/*!
57
\fn virtual bool QDesignerPromotionInterface::changePromotedClassName(const QString &oldClassName, const QString &newClassName, QString *errorMessage)
58
59
Change the class name of a promoted class from \a oldClassName to \a newClassName. Returns \c true on success or \c false along
60
with an error message in \a errorMessage on failure.
61
*/
62
63
/*!
64
\fn virtual bool QDesignerPromotionInterface::setPromotedClassIncludeFile(const QString &className, const QString &includeFile, QString *errorMessage)
65
66
Change the include file of a promoted class named \a className to be \a includeFile. Returns \c true on success or \c false along
67
with an error message in \a errorMessage on failure.
68
*/
69
70
/*! \fn virtual QList<QDesignerWidgetDataBaseItemInterface *> QDesignerPromotionInterface::promotionBaseClasses() const
71
72
Return a list of base classes that are suitable for promotion.
73
*/
74
75
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qttools
src
designer
src
lib
sdk
abstractpromotioninterface.cpp
Generated on
for Qt by
1.16.1