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