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// Qt-Security score:significant reason:default
4
5#ifndef COMBOBOX_TASKMENU_H
6#define COMBOBOX_TASKMENU_H
7
8#include <QtWidgets/qcombobox.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:
26 QObject *parent = nullptr);
28
29 QAction *preferredEditAction() const override;
30 QList<QAction*> taskActions() const override;
31
32private slots:
33 void editItems();
34 void updateSelection();
35
36private:
37 QComboBox *m_comboBox;
38 QPointer<QDesignerFormWindowInterface> m_formWindow;
39 QPointer<QLineEdit> m_editor;
40 mutable QList<QAction*> m_taskActions;
41 QAction *m_editItemsAction;
42};
43
45{
46public:
47 explicit ComboBoxTaskMenuFactory(const QString &iid, QExtensionManager *extensionManager);
48
49private:
50 QComboBox *checkObject(QObject *qObject) const override;
51};
52
53} // namespace qdesigner_internal
54
55QT_END_NAMESPACE
56
57#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.