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
treewidget_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
TREEWIDGET_TASKMENU_H
5
#
define
TREEWIDGET_TASKMENU_H
6
7
#
include
<
QtWidgets
/
qtreewidget
.
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
TreeWidgetTaskMenu
:
public
QDesignerTaskMenu
21
{
22
Q_OBJECT
23
public
:
24
explicit
TreeWidgetTaskMenu
(
QTreeWidget
*
button
,
QObject
*
parent
=
nullptr
);
25
~
TreeWidgetTaskMenu
()
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
QTreeWidget *m_treeWidget;
36
QPointer<QDesignerFormWindowInterface> m_formWindow;
37
QPointer<QLineEdit> m_editor;
38
mutable
QList<QAction*> m_taskActions;
39
QAction *m_editItemsAction;
40
};
41
42
using
TreeWidgetTaskMenuFactory
=
ExtensionFactory
<
QDesignerTaskMenuExtension
,
QTreeWidget
,
TreeWidgetTaskMenu
>;
43
}
// namespace qdesigner_internal
44
45
QT_END_NAMESPACE
46
47
#
endif
// TREEWIDGET_TASKMENU_H
qdesigner_internal::ComboBoxTaskMenuFactory
Definition
combobox_taskmenu.h:44
qdesigner_internal::ContainerWidgetTaskMenuFactory
Definition
containerwidget_taskmenu.h:103
qdesigner_internal::TaskMenuComponent
Definition
taskmenu_component.h:19
qdesigner_internal::TaskMenuComponent::core
QDesignerFormEditorInterface * core() const
Definition
taskmenu_component.cpp:62
qdesigner_internal::TaskMenuComponent::~TaskMenuComponent
~TaskMenuComponent() override
qdesigner_internal::TreeWidgetTaskMenu
Definition
treewidget_taskmenu.h:21
qdesigner_internal::TreeWidgetTaskMenu::preferredEditAction
QAction * preferredEditAction() const override
Definition
treewidget_taskmenu.cpp:39
qdesigner_internal::TreeWidgetTaskMenu::taskActions
QList< QAction * > taskActions() const override
Definition
treewidget_taskmenu.cpp:44
qdesigner_internal::TreeWidgetTaskMenu::~TreeWidgetTaskMenu
~TreeWidgetTaskMenu() 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
qttools
src
designer
src
components
taskmenu
treewidget_taskmenu.h
Generated on Sat Sep 21 2024 00:50:27 for Qt by
1.12.0