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