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
qkeysequenceedit_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// Copyright (C) 2013 Ivan Komissarov.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5
#
ifndef
QKEYSEQUENCEEDIT_P_H
6
#
define
QKEYSEQUENCEEDIT_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
<
QtWidgets
/
private
/
qtwidgetsglobal_p
.
h
>
20
#
include
"qkeysequenceedit.h"
21
22
#
include
<
QtCore
/
qbasictimer
.
h
>
23
#
include
<
private
/
qwidget_p
.
h
>
24
#
include
<
private
/
qkeysequence_p
.
h
>
25
26
QT_REQUIRE_CONFIG
(keysequenceedit);
27
28
QT_BEGIN_NAMESPACE
29
30
class
QLineEdit;
31
32
class
QKeySequenceEditPrivate
:
public
QWidgetPrivate
33
{
34
Q_DECLARE_PUBLIC(QKeySequenceEdit)
35
public
:
36
void
init
();
37
int
translateModifiers
(Qt::KeyboardModifiers state,
const
QString &text);
38
void
resetState
();
39
void
finishEditing
();
40
void
rebuildKeySequence
()
41
{ keySequence = QKeySequence(key[0], key[1], key[2], key[3]); }
42
43
QLineEdit *
lineEdit
;
44
QKeySequence
keySequence
;
45
int
keyNum
;
46
int
maximumSequenceLength
=
QKeySequencePrivate
::
MaxKeyCount
;
47
QKeyCombination
key
[
QKeySequencePrivate
::
MaxKeyCount
];
48
int
prevKey
;
49
QBasicTimer
releaseTimer
;
50
QList
<
QKeyCombination
>
finishingKeyCombinations
;
51
};
52
53
QT_END_NAMESPACE
54
55
#
endif
// QKEYSEQUENCEEDIT_P_H
QKeySequenceEditPrivate
Definition
qkeysequenceedit_p.h:33
QKeySequenceEditPrivate::finishingKeyCombinations
QList< QKeyCombination > finishingKeyCombinations
Definition
qkeysequenceedit_p.h:50
QKeySequenceEditPrivate::lineEdit
QLineEdit * lineEdit
Definition
qkeysequenceedit_p.h:43
QKeySequenceEditPrivate::prevKey
int prevKey
Definition
qkeysequenceedit_p.h:48
QKeySequenceEditPrivate::key
QKeyCombination key[QKeySequencePrivate::MaxKeyCount]
Definition
qkeysequenceedit_p.h:47
QKeySequenceEditPrivate::maximumSequenceLength
int maximumSequenceLength
Definition
qkeysequenceedit_p.h:46
QKeySequenceEditPrivate::finishEditing
void finishEditing()
Definition
qkeysequenceedit.cpp:73
QKeySequenceEditPrivate::translateModifiers
int translateModifiers(Qt::KeyboardModifiers state, const QString &text)
Definition
qkeysequenceedit.cpp:51
QKeySequenceEditPrivate::releaseTimer
QBasicTimer releaseTimer
Definition
qkeysequenceedit_p.h:49
QKeySequenceEditPrivate::keyNum
int keyNum
Definition
qkeysequenceedit_p.h:45
QKeySequenceEditPrivate::rebuildKeySequence
void rebuildKeySequence()
Definition
qkeysequenceedit_p.h:40
QKeySequenceEditPrivate::keySequence
QKeySequence keySequence
Definition
qkeysequenceedit_p.h:44
QKeySequenceEditPrivate::resetState
void resetState()
Definition
qkeysequenceedit.cpp:64
QKeySequenceEdit
The QKeySequenceEdit widget allows to input a QKeySequence.
Definition
qkeysequenceedit.h:17
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(keysequenceedit)
qtbase
src
widgets
widgets
qkeysequenceedit_p.h
Generated on Sat Sep 21 2024 00:44:37 for Qt by
1.12.0