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