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
abstractmetadatabase.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// sdk
7
9
10/*!
11 \class QDesignerMetaDataBaseInterface
12 \brief The QDesignerMetaDataBaseInterface class provides an interface to Qt Widgets Designer's
13 object meta database.
14 \inmodule QtDesigner
15 \internal
16*/
17
18/*!
19 Constructs an interface to the meta database with the given \a parent.
20*/
21QDesignerMetaDataBaseInterface::QDesignerMetaDataBaseInterface(QObject *parent)
22 : QObject(parent)
23{
24}
25
26/*!
27 Destroys the interface to the meta database.
28*/
29QDesignerMetaDataBaseInterface::~QDesignerMetaDataBaseInterface() = default;
30
31/*!
32 \fn QDesignerMetaDataBaseItemInterface *QDesignerMetaDataBaseInterface::item(QObject *object) const
33
34 Returns the item in the meta database associated with the given \a object.
35*/
36
37/*!
38 \fn void QDesignerMetaDataBaseInterface::add(QObject *object)
39
40 Adds the specified \a object to the meta database.
41*/
42
43/*!
44 \fn void QDesignerMetaDataBaseInterface::remove(QObject *object)
45
46 Removes the specified \a object from the meta database.
47*/
48
49/*!
50 \fn QList<QObject*> QDesignerMetaDataBaseInterface::objects() const
51
52 Returns the list of objects that have corresponding items in the meta database.
53*/
54
55/*!
56 \fn QDesignerFormEditorInterface *QDesignerMetaDataBaseInterface::core() const
57
58 Returns the core interface that is associated with the meta database.
59*/
60
61
62// Doc: Interface only
63
64/*!
65 \class QDesignerMetaDataBaseItemInterface
66 \brief The QDesignerMetaDataBaseItemInterface class provides an interface to individual
67 items in \QD's meta database.
68 \inmodule QtDesigner
69 \internal
70
71 This class allows individual items in \QD's meta-data database to be accessed and modified.
72 Use the QDesignerMetaDataBaseInterface class to change the properties of the database itself.
73*/
74
75/*!
76 \fn QDesignerMetaDataBaseItemInterface::~QDesignerMetaDataBaseItemInterface()
77
78 Destroys the item interface to the meta-data database.
79*/
80
81/*!
82 \fn QString QDesignerMetaDataBaseItemInterface::name() const
83
84 Returns the name of the item in the database.
85
86 \sa setName()
87*/
88
89/*!
90 \fn void QDesignerMetaDataBaseItemInterface::setName(const QString &name)
91
92 Sets the name of the item to the given \a name.
93
94 \sa name()
95*/
96
97/*!
98 \fn QList<QWidget*> QDesignerMetaDataBaseItemInterface::tabOrder() const
99
100 Returns a list of widgets in the order defined by the form's tab order.
101
102 \sa setTabOrder()
103*/
104
105
106/*!
107 \fn void QDesignerMetaDataBaseItemInterface::setTabOrder(const QList<QWidget*> &tabOrder)
108
109 Sets the tab order in the form using the list of widgets defined by \a tabOrder.
110
111 \sa tabOrder()
112*/
113
114
115/*!
116 \fn bool QDesignerMetaDataBaseItemInterface::enabled() const
117
118 Returns whether the item is enabled.
119
120 \sa setEnabled()
121*/
122
123/*!
124 \fn void QDesignerMetaDataBaseItemInterface::setEnabled(bool enabled)
125
126 If \a enabled is true, the item is enabled; otherwise it is disabled.
127
128 \sa enabled()
129*/
130
131QT_END_NAMESPACE
Combined button and popup list for selecting options.