Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickmnemoniclabel_p.h
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQUICKMNEMONICLABEL_P_H
6
#
define
QQUICKMNEMONICLABEL_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtQuick
/
private
/
qquicktext_p
.
h
>
20
#
include
<
QtQuickControls2Impl
/
private
/
qtquickcontrols2implglobal_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
Q_QUICKCONTROLS2IMPL_EXPORT
QQuickMnemonicLabel
:
public
QQuickText
25
{
26
Q_OBJECT
27
Q_PROPERTY(QString text READ text WRITE setText FINAL)
28
Q_PROPERTY(
bool
mnemonicEnabled READ isMnemonicEnabled WRITE setMnemonicEnabled FINAL)
29
QML_NAMED_ELEMENT(MnemonicLabel)
30
QML_ADDED_IN_VERSION(2, 3)
31
32
public
:
33
explicit
QQuickMnemonicLabel(QQuickItem *parent =
nullptr
);
34
35
QString text()
const
;
36
void
setText(
const
QString &text) override;
37
38
bool
isMnemonicEnabled()
const
;
39
void
setMnemonicEnabled(
bool
enabled);
40
41
private
:
42
void
updateMnemonic();
43
44
// True by default because it's the default for most types like Button:
45
// only ItemDelegate and its derived types set it to false. Note that underlining
46
// is controlled separately; see the docs for this property.
47
bool
m_mnemonicEnabled =
true
;
48
QString m_fullText;
49
};
50
51
QT_END_NAMESPACE
52
53
#
endif
// QQUICKMNEMONICLABEL_P_H
QQuickIconLabelPrivate
Definition
qquickiconlabel_p_p.h:30
QQuickIconLabel
Definition
qquickiconlabel_p.h:28
QQuickMnemonicLabel
Definition
qquickmnemoniclabel_p.h:25
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
itemChangeTypes
static const QQuickItemPrivate::ChangeTypes itemChangeTypes
Definition
qquickiconlabel.cpp:313
qtdeclarative
src
quickcontrolsimpl
qquickmnemoniclabel_p.h
Generated on
for Qt by
1.18.0