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