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// Qt-Security score:significant reason:default
4
5#ifndef TEXTEDIT_TASKMENU_H
6#define TEXTEDIT_TASKMENU_H
7
8#include <QtWidgets/qtextedit.h>
9#include <QtWidgets/qplaintextedit.h>
10
11#include <qdesigner_taskmenu_p.h>
12#include <extensionfactory_p.h>
13
15
16class QDesignerFormWindowInterface;
17
18namespace qdesigner_internal {
19
21{
23public:
24 explicit TextEditTaskMenu(QTextEdit *button, QObject *parent = nullptr);
25 explicit TextEditTaskMenu(QPlainTextEdit *button, QObject *parent = nullptr);
26
28
29 QAction *preferredEditAction() const override;
30 QList<QAction*> taskActions() const override;
31
32private slots:
33 void editText();
34
35private:
36 void initialize();
37
38 const Qt::TextFormat m_format;
39 const QString m_property;
40 const QString m_windowTitle;
41
42 mutable QList<QAction*> m_taskActions;
43 QAction *m_editTextAction;
44};
45
48} // namespace qdesigner_internal
49
50QT_END_NAMESPACE
51
52#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.