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
textedit_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 TEXTEDIT_TASKMENU_H
5#define TEXTEDIT_TASKMENU_H
6
7#include <QtWidgets/qtextedit.h>
8#include <QtWidgets/qplaintextedit.h>
9
10#include <qdesigner_taskmenu_p.h>
11#include <extensionfactory_p.h>
12
14
15class QDesignerFormWindowInterface;
16
17namespace qdesigner_internal {
18
20{
22public:
23 explicit TextEditTaskMenu(QTextEdit *button, QObject *parent = nullptr);
24 explicit TextEditTaskMenu(QPlainTextEdit *button, QObject *parent = nullptr);
25
27
28 QAction *preferredEditAction() const override;
29 QList<QAction*> taskActions() const override;
30
31private slots:
32 void editText();
33
34private:
35 void initialize();
36
37 const Qt::TextFormat m_format;
38 const QString m_property;
39 const QString m_windowTitle;
40
41 mutable QList<QAction*> m_taskActions;
42 QAction *m_editTextAction;
43};
44
47} // namespace qdesigner_internal
48
49QT_END_NAMESPACE
50
51#endif // TEXTEDIT_TASKMENU_H
QDesignerFormEditorInterface * core() const
QAction * preferredEditAction() const override
QList< QAction * > taskActions() const override
TextEditTaskMenu(QPlainTextEdit *button, QObject *parent=nullptr)
QAction * preferredEditAction() const override
QList< QAction * > taskActions() const override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.