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// Qt-Security score:significant reason:default
5
6#ifndef QKEYSEQUENCEEDIT_P_H
7#define QKEYSEQUENCEEDIT_P_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QtWidgets/private/qtwidgetsglobal_p.h>
22
23#include <QtCore/qbasictimer.h>
24#include <private/qwidget_p.h>
25#include <private/qkeysequence_p.h>
26
28
29QT_BEGIN_NAMESPACE
30
31class QLineEdit;
32
34{
35 Q_DECLARE_PUBLIC(QKeySequenceEdit)
36public:
37 void init();
38 int translateModifiers(Qt::KeyboardModifiers state, const QString &text);
39 void resetState();
40 void finishEditing();
42 { keySequence = QKeySequence(key[0], key[1], key[2], key[3]); }
43
44 QLineEdit *lineEdit;
46 int keyNum;
52};
53
54QT_END_NAMESPACE
55
56#endif // QKEYSEQUENCEEDIT_P_H
QList< QKeyCombination > finishingKeyCombinations
QKeyCombination key[QKeySequencePrivate::MaxKeyCount]
int translateModifiers(Qt::KeyboardModifiers state, const QString &text)
The QKeySequenceEdit widget allows to input a QKeySequence.
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(keysequenceedit)