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
14
QT_BEGIN_NAMESPACE
15
16
class
QDesignerFormWindowInterface;
17
18
namespace
qdesigner_internal
{
19
20
class
TextEditTaskMenu
:
public
QDesignerTaskMenu
21
{
22
Q_OBJECT
23
public
:
24
explicit
TextEditTaskMenu
(
QTextEdit
*
button
,
QObject
*
parent
=
nullptr
);
25
explicit
TextEditTaskMenu
(QPlainTextEdit *button, QObject *parent =
nullptr
);
26
27
~
TextEditTaskMenu
()
override
;
28
29
QAction *
preferredEditAction
()
const
override
;
30
QList
<
QAction
*>
taskActions
()
const
override
;
31
32
private
slots
:
33
void
editText
();
34
35
private
:
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
46
using
TextEditTaskMenuFactory
=
ExtensionFactory
<
QDesignerTaskMenuExtension
,
QTextEdit
,
TextEditTaskMenu
>;
47
using
PlainTextEditTaskMenuFactory
=
ExtensionFactory
<
QDesignerTaskMenuExtension
,
QPlainTextEdit
,
TextEditTaskMenu
>;
48
}
// namespace qdesigner_internal
49
50
QT_END_NAMESPACE
51
52
#
endif
// TEXTEDIT_TASKMENU_H
qdesigner_internal::ComboBoxTaskMenuFactory
Definition
combobox_taskmenu.h:45
qdesigner_internal::ContainerWidgetTaskMenuFactory
Definition
containerwidget_taskmenu.h:104
qdesigner_internal::TaskMenuComponent
Definition
taskmenu_component.h:20
qdesigner_internal::TaskMenuComponent::core
QDesignerFormEditorInterface * core() const
Definition
taskmenu_component.cpp:63
qdesigner_internal::TaskMenuComponent::~TaskMenuComponent
~TaskMenuComponent() override
qdesigner_internal::TextEditTaskMenu
Definition
textedit_taskmenu.h:21
qdesigner_internal::TextEditTaskMenu::preferredEditAction
QAction * preferredEditAction() const override
Definition
textedit_taskmenu.cpp:53
qdesigner_internal::TextEditTaskMenu::taskActions
QList< QAction * > taskActions() const override
Definition
textedit_taskmenu.cpp:58
qdesigner_internal::TextEditTaskMenu::~TextEditTaskMenu
~TextEditTaskMenu() override
qdesigner_internal::TextEditTaskMenu::TextEditTaskMenu
TextEditTaskMenu(QPlainTextEdit *button, QObject *parent=nullptr)
Definition
textedit_taskmenu.cpp:30
qdesigner_internal::TreeWidgetTaskMenu
Definition
treewidget_taskmenu.h:22
qdesigner_internal::TreeWidgetTaskMenu::preferredEditAction
QAction * preferredEditAction() const override
Definition
treewidget_taskmenu.cpp:40
qdesigner_internal::TreeWidgetTaskMenu::taskActions
QList< QAction * > taskActions() const override
Definition
treewidget_taskmenu.cpp:45
qdesigner_internal::TreeWidgetTaskMenu::~TreeWidgetTaskMenu
~TreeWidgetTaskMenu() override
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:67
qttools
src
designer
src
components
taskmenu
textedit_taskmenu.h
Generated on
for Qt by
1.16.1