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
14
15class QDesignerFormWindowInterface;
16
17namespace qdesigner_internal {
18
20{
22public:
23 explicit LabelTaskMenu(QLabel *button, QObject *parent = nullptr);
24
25 QAction *preferredEditAction() const override;
26 QList<QAction*> taskActions() const override;
27
28private slots:
29 void editRichText();
30
31private:
32 QLabel *m_label;
33 QList<QAction*> m_taskActions;
34 QAction *m_editRichTextAction;
35 QAction *m_editPlainTextAction;
36};
37
39} // namespace qdesigner_internal
40
41QT_END_NAMESPACE
42
43#endif // LABEL_TASKMENU_H
LabelTaskMenuInlineEditor(QLabel *button, QObject *parent)
QList< QAction * > taskActions() const override
QAction * preferredEditAction() const override
static constexpr auto textPropertyC
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.