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
tablewidget_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 TABLEWIDGET_TASKMENU_H
5#define TABLEWIDGET_TASKMENU_H
6
7#include <qdesigner_taskmenu_p.h>
8#include <extensionfactory_p.h>
9
10#include <QtWidgets/qtablewidget.h>
11#include <QtCore/qpointer.h>
12
14
15class QLineEdit;
16class QDesignerFormWindowInterface;
17
18namespace qdesigner_internal {
19
21{
23public:
26
27 QAction *preferredEditAction() const override;
28 QList<QAction*> taskActions() const override;
29
30private slots:
31 void editItems();
32 void updateSelection();
33
34private:
35 QTableWidget *m_tableWidget;
36 QPointer<QDesignerFormWindowInterface> m_formWindow;
37 QPointer<QLineEdit> m_editor;
38 mutable QList<QAction*> m_taskActions;
39 QAction *m_editItemsAction;
40};
41
43} // namespace qdesigner_internal
44
45QT_END_NAMESPACE
46
47#endif // TABLEWIDGET_TASKMENU_H
QList< QAction * > taskActions() const override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.