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// Qt-Security score:significant reason:default
4
5#ifndef LISTWIDGET_TASKMENU_H
6#define LISTWIDGET_TASKMENU_H
7
8#include <QtWidgets/qlistwidget.h>
9#include <QtCore/qpointer.h>
10
11#include <qdesigner_taskmenu_p.h>
12#include <extensionfactory_p.h>
13
15
16class QLineEdit;
17class QDesignerFormWindowInterface;
18
19namespace qdesigner_internal {
20
22{
24public:
25 explicit ListWidgetTaskMenu(QListWidget *button, QObject *parent = nullptr);
27
28 QAction *preferredEditAction() const override;
29 QList<QAction*> taskActions() const override;
30
31private slots:
32 void editItems();
33 void updateSelection();
34
35private:
36 QListWidget *m_listWidget;
37 QPointer<QDesignerFormWindowInterface> m_formWindow;
38 QPointer<QLineEdit> m_editor;
39 mutable QList<QAction*> m_taskActions;
40 QAction *m_editItemsAction;
41};
42
44} // namespace qdesigner_internal
45
46QT_END_NAMESPACE
47
48#endif // LISTWIDGET_TASKMENU_H
QAction * preferredEditAction() const override
QList< QAction * > taskActions() const override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.