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
14
15class QLineEdit;
16class QDesignerFormWindowInterface;
17
18namespace qdesigner_internal {
19
21{
23public:
25 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 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
44{
45public:
46 explicit ComboBoxTaskMenuFactory(const QString &iid, QExtensionManager *extensionManager);
47
48private:
49 QComboBox *checkObject(QObject *qObject) const override;
50};
51
52} // namespace qdesigner_internal
53
54QT_END_NAMESPACE
55
56#endif // COMBOBOX_TASKMENU_H
ComboBoxTaskMenuFactory(const QString &iid, QExtensionManager *extensionManager)
QComboBox * checkObject(QObject *qObject) const override
QList< QAction * > taskActions() const override
QAction * preferredEditAction() const override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.