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
listwidget_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
LISTWIDGET_TASKMENU_H
5
#
define
LISTWIDGET_TASKMENU_H
6
7
#
include
<
QtWidgets
/
qlistwidget
.
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
ListWidgetTaskMenu
:
public
QDesignerTaskMenu
21
{
22
Q_OBJECT
23
public
:
24
explicit
ListWidgetTaskMenu
(
QListWidget
*
button
,
QObject
*
parent
=
nullptr
);
25
~
ListWidgetTaskMenu
()
override
;
26
27
QAction
*
preferredEditAction
()
const
override
;
28
QList
<
QAction
*>
taskActions
()
const
override
;
29
30
private
slots
:
31
void
editItems
();
32
void
updateSelection();
33
34
private
:
35
QListWidget *m_listWidget;
36
QPointer<QDesignerFormWindowInterface> m_formWindow;
37
QPointer<QLineEdit> m_editor;
38
mutable
QList<QAction*> m_taskActions;
39
QAction *m_editItemsAction;
40
};
41
42
using
ListWidgetTaskMenuFactory
=
ExtensionFactory
<
QDesignerTaskMenuExtension
,
QListWidget
,
ListWidgetTaskMenu
>;
43
}
// namespace qdesigner_internal
44
45
QT_END_NAMESPACE
46
47
#
endif
// LISTWIDGET_TASKMENU_H
qdesigner_internal::ListWidgetEditor
Definition
listwidgeteditor.h:21
qdesigner_internal::ListWidgetTaskMenu
Definition
listwidget_taskmenu.h:21
qdesigner_internal::ListWidgetTaskMenu::preferredEditAction
QAction * preferredEditAction() const override
Definition
listwidget_taskmenu.cpp:41
qdesigner_internal::ListWidgetTaskMenu::taskActions
QList< QAction * > taskActions() const override
Definition
listwidget_taskmenu.cpp:46
qdesigner_internal::ListWidgetTaskMenu::~ListWidgetTaskMenu
~ListWidgetTaskMenu() override
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
listwidget_taskmenu.h
Generated on Sat Sep 21 2024 00:50:26 for Qt by
1.12.0