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
combobox_taskmenu.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
COMBOBOX_TASKMENU_H
6
#
define
COMBOBOX_TASKMENU_H
7
8
#
include
<
QtWidgets
/
qcombobox
.
h
>
9
#
include
<
QtCore
/
qpointer
.
h
>
10
11
#
include
<
qdesigner_taskmenu_p
.
h
>
12
#
include
<
extensionfactory_p
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
class
QLineEdit;
17
class
QDesignerFormWindowInterface;
18
19
namespace
qdesigner_internal
{
20
21
class
ComboBoxTaskMenu
:
public
QDesignerTaskMenu
22
{
23
Q_OBJECT
24
public
:
25
explicit
ComboBoxTaskMenu
(
QComboBox
*
button
,
26
QObject
*
parent
=
nullptr
);
27
~
ComboBoxTaskMenu
()
override
;
28
29
QAction
*
preferredEditAction
()
const
override
;
30
QList
<
QAction
*>
taskActions
()
const
override
;
31
32
private
slots
:
33
void
editItems
();
34
void
updateSelection();
35
36
private
:
37
QComboBox *m_comboBox;
38
QPointer<QDesignerFormWindowInterface> m_formWindow;
39
QPointer<QLineEdit> m_editor;
40
mutable
QList<QAction*> m_taskActions;
41
QAction *m_editItemsAction;
42
};
43
44
class
ComboBoxTaskMenuFactory
:
public
ExtensionFactory
<
QDesignerTaskMenuExtension
,
QComboBox
,
ComboBoxTaskMenu
>
45
{
46
public
:
47
explicit
ComboBoxTaskMenuFactory
(
const
QString &iid, QExtensionManager *extensionManager);
48
49
private
:
50
QComboBox
*
checkObject
(QObject *qObject)
const
override
;
51
};
52
53
}
// namespace qdesigner_internal
54
55
QT_END_NAMESPACE
56
57
#
endif
// COMBOBOX_TASKMENU_H
qdesigner_internal::ComboBoxTaskMenuFactory
Definition
combobox_taskmenu.h:45
qdesigner_internal::ComboBoxTaskMenuFactory::ComboBoxTaskMenuFactory
ComboBoxTaskMenuFactory(const QString &iid, QExtensionManager *extensionManager)
Definition
combobox_taskmenu.cpp:74
qdesigner_internal::ComboBoxTaskMenuFactory::checkObject
QComboBox * checkObject(QObject *qObject) const override
Definition
combobox_taskmenu.cpp:79
qdesigner_internal::ComboBoxTaskMenu
Definition
combobox_taskmenu.h:22
qdesigner_internal::ComboBoxTaskMenu::~ComboBoxTaskMenu
~ComboBoxTaskMenu() override
qdesigner_internal::ComboBoxTaskMenu::taskActions
QList< QAction * > taskActions() const override
Definition
combobox_taskmenu.cpp:48
qdesigner_internal::ComboBoxTaskMenu::preferredEditAction
QAction * preferredEditAction() const override
Definition
combobox_taskmenu.cpp:43
qdesigner_internal::ListWidgetEditor
Definition
listwidgeteditor.h:22
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:67
qdesigner_internal::ListContents
Definition
qdesigner_command_p.h:841
qttools
src
designer
src
components
taskmenu
combobox_taskmenu.h
Generated on
for Qt by
1.16.1