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
label_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
LABEL_TASKMENU_H
6
#
define
LABEL_TASKMENU_H
7
8
#
include
<
QtWidgets
/
qlabel
.
h
>
9
#
include
<
QtCore
/
qpointer
.
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
LabelTaskMenu
:
public
QDesignerTaskMenu
21
{
22
Q_OBJECT
23
public
:
24
explicit
LabelTaskMenu
(
QLabel
*
button
,
QObject
*
parent
=
nullptr
);
25
26
QAction
*
preferredEditAction
()
const
override
;
27
QList
<
QAction
*>
taskActions
()
const
override
;
28
29
private
slots
:
30
void
editRichText
();
31
32
private
:
33
QLabel *m_label;
34
QList<QAction*> m_taskActions;
35
QAction *m_editRichTextAction;
36
QAction *m_editPlainTextAction;
37
};
38
39
using
LabelTaskMenuFactory
=
ExtensionFactory
<
QDesignerTaskMenuExtension
,
QLabel
,
LabelTaskMenu
>;
40
}
// namespace qdesigner_internal
41
42
QT_END_NAMESPACE
43
44
#
endif
// LABEL_TASKMENU_H
qdesigner_internal::LabelTaskMenuInlineEditor
Definition
label_taskmenu.cpp:26
qdesigner_internal::LabelTaskMenuInlineEditor::editRectangle
QRect editRectangle() const override
Definition
label_taskmenu.cpp:39
qdesigner_internal::LabelTaskMenuInlineEditor::LabelTaskMenuInlineEditor
LabelTaskMenuInlineEditor(QLabel *button, QObject *parent)
Definition
label_taskmenu.cpp:34
qdesigner_internal::LabelTaskMenu
Definition
label_taskmenu.h:21
qdesigner_internal::LabelTaskMenu::taskActions
QList< QAction * > taskActions() const override
Definition
label_taskmenu.cpp:72
qdesigner_internal::LabelTaskMenu::preferredEditAction
QAction * preferredEditAction() const override
Definition
label_taskmenu.cpp:66
qdesigner_internal::TaskMenuInlineEditor
Definition
inplace_editor.h:42
textPropertyC
static constexpr auto textPropertyC
Definition
label_taskmenu.cpp:20
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
qdesigner_internal::ValidationRichText
@ ValidationRichText
Definition
shared_enums_p.h:30
qttools
src
designer
src
components
taskmenu
label_taskmenu.h
Generated on
for Qt by
1.16.1