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
qwidgetaction_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QWIDGETACTION_P_H
6
#
define
QWIDGETACTION_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtWidgets
/
private
/
qtwidgetsglobal_p
.
h
>
20
#
include
"private/qaction_widgets_p.h"
21
22
#
include
<
QtCore
/
qpointer
.
h
>
23
24
QT_REQUIRE_CONFIG
(
action
);
25
26
QT_BEGIN_NAMESPACE
27
28
class
QWidgetActionPrivate :
public
QtWidgetsActionPrivate
29
{
30
Q_DECLARE_PUBLIC(QWidgetAction)
31
public
:
32
inline
QWidgetActionPrivate() : defaultWidgetInUse(
false
), autoCreated(
false
) {}
33
QPointer<QWidget> defaultWidget;
34
QList<QWidget *> createdWidgets;
35
uint defaultWidgetInUse : 1;
36
uint autoCreated : 1;
// created by QToolBar::addWidget and the like
37
38
inline
void
widgetDestroyed(QObject *o) {
39
createdWidgets.removeAll(
static_cast
<QWidget *>(o));
40
}
41
};
42
43
QT_END_NAMESPACE
44
45
#
endif
QWidgetAction
The QWidgetAction class extends QAction by an interface for inserting custom widgets into action base...
Definition
qwidgetaction.h:18
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(action)
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(animation)
qtbase
src
widgets
kernel
qwidgetaction_p.h
Generated on
for Qt by
1.18.0