Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
abstractpromotioninterface.h
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
#
ifndef
ABSTRACTPROMOTIONINTERFACE_H
6
#
define
ABSTRACTPROMOTIONINTERFACE_H
7
8
#
include
<
QtDesigner
/
sdk_global
.
h
>
9
10
#
include
<
QtCore
/
qpair
.
h
>
11
#
include
<
QtCore
/
qlist
.
h
>
12
#
include
<
QtCore
/
qset
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
class
QDesignerWidgetDataBaseItemInterface;
17
18
class
QDESIGNER_SDK_EXPORT
QDesignerPromotionInterface
19
{
20
public
:
21
Q_DISABLE_COPY_MOVE(QDesignerPromotionInterface)
22
23
QDesignerPromotionInterface() =
default
;
24
virtual
~QDesignerPromotionInterface() =
default
;
25
26
struct
PromotedClass
27
{
28
QDesignerWidgetDataBaseItemInterface *baseItem;
29
QDesignerWidgetDataBaseItemInterface *promotedItem;
30
};
31
32
using
PromotedClasses = QList<PromotedClass>;
33
34
virtual
PromotedClasses promotedClasses()
const
= 0;
35
36
virtual
QSet<QString> referencedPromotedClassNames()
const
= 0;
37
38
virtual
bool
addPromotedClass(
const
QString &baseClass,
39
const
QString &className,
40
const
QString &includeFile,
41
QString *errorMessage) = 0;
42
43
virtual
bool
removePromotedClass(
const
QString &className, QString *errorMessage) = 0;
44
45
virtual
bool
changePromotedClassName(
const
QString &oldClassName,
const
QString &newClassName, QString *errorMessage) = 0;
46
47
virtual
bool
setPromotedClassIncludeFile(
const
QString &className,
const
QString &includeFile, QString *errorMessage) = 0;
48
49
virtual
QList<QDesignerWidgetDataBaseItemInterface *> promotionBaseClasses()
const
= 0;
50
};
51
52
QT_END_NAMESPACE
53
54
#
endif
// ABSTRACTPROMOTIONINTERFACE_H
QDesignerPromotionInterface
The QDesignerPromotionInterface provides functions for modifying the promoted classes in Designer.
Definition
abstractpromotioninterface.h:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qttools
src
designer
src
lib
sdk
abstractpromotioninterface.h
Generated on
for Qt by
1.18.0