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
abstractmetadatabase.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
ABSTRACTMETADATABASE_H
6
#
define
ABSTRACTMETADATABASE_H
7
8
#
include
<
QtDesigner
/
sdk_global
.
h
>
9
10
#
include
<
QtCore
/
qobject
.
h
>
11
#
include
<
QtCore
/
qlist
.
h
>
12
#
include
<
QtCore
/
qhash
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
class
QCursor;
17
class
QWidget
;
18
19
class
QDesignerFormEditorInterface;
20
21
class
QDesignerMetaDataBaseItemInterface
22
{
23
public
:
24
Q_DISABLE_COPY_MOVE
(
QDesignerMetaDataBaseItemInterface
)
25
26
QDesignerMetaDataBaseItemInterface
() =
default
;
27
virtual
~
QDesignerMetaDataBaseItemInterface
() =
default
;
28
29
virtual
QString
name
()
const
= 0;
30
virtual
void
setName
(
const
QString &name) = 0;
31
32
virtual
QList
<
QWidget
*>
tabOrder
()
const
= 0;
33
virtual
void
setTabOrder
(
const
QList<QWidget*> &tabOrder) = 0;
34
35
virtual
bool
enabled
()
const
= 0;
36
virtual
void
setEnabled
(
bool
b) = 0;
37
};
38
39
40
class
QDESIGNER_SDK_EXPORT
QDesignerMetaDataBaseInterface
:
public
QObject
41
{
42
Q_OBJECT
43
public
:
44
explicit
QDesignerMetaDataBaseInterface(QObject *parent =
nullptr
);
45
virtual
~QDesignerMetaDataBaseInterface();
46
47
virtual
QDesignerMetaDataBaseItemInterface *item(QObject *object)
const
= 0;
48
virtual
void
add(QObject *object) = 0;
49
virtual
void
remove(QObject *object) = 0;
50
51
virtual
QList<QObject*> objects()
const
= 0;
52
53
virtual
QDesignerFormEditorInterface *core()
const
= 0;
54
55
Q_SIGNALS:
56
void
changed();
57
};
58
59
QT_END_NAMESPACE
60
61
#
endif
// ABSTRACTMETADATABASE_H
QDesignerMetaDataBaseInterface
The QDesignerMetaDataBaseInterface class provides an interface to Qt Widgets Designer's object meta d...
Definition
abstractmetadatabase.h:41
QDesignerMetaDataBaseItemInterface
The QDesignerMetaDataBaseItemInterface class provides an interface to individual items in \QD's meta ...
Definition
abstractmetadatabase.h:22
QDesignerMetaDataBaseItemInterface::setName
virtual void setName(const QString &name)=0
Sets the name of the item to the given name.
QDesignerMetaDataBaseItemInterface::name
virtual QString name() const =0
Returns the name of the item in the database.
QDesignerMetaDataBaseItemInterface::enabled
virtual bool enabled() const =0
Returns whether the item is enabled.
QDesignerMetaDataBaseItemInterface::~QDesignerMetaDataBaseItemInterface
virtual ~QDesignerMetaDataBaseItemInterface()=default
Destroys the item interface to the meta-data database.
QDesignerMetaDataBaseItemInterface::setTabOrder
virtual void setTabOrder(const QList< QWidget * > &tabOrder)=0
Sets the tab order in the form using the list of widgets defined by tabOrder.
QDesignerMetaDataBaseItemInterface::tabOrder
virtual QList< QWidget * > tabOrder() const =0
Returns a list of widgets in the order defined by the form's tab order.
QDesignerMetaDataBaseItemInterface::setEnabled
virtual void setEnabled(bool b)=0
If enabled is true, the item is enabled; otherwise it is disabled.
QPainter::QWidget
friend class QWidget
Definition
qpainter.h:432
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qttools
src
designer
src
lib
sdk
abstractmetadatabase.h
Generated on
for Qt by
1.18.0