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>
21
22#include <QtCore/qbasictimer.h>
23#include <private/qwidget_p.h>
24#include <private/qkeysequence_p.h>
25
26QT_REQUIRE_CONFIG(keysequenceedit);
27
28QT_BEGIN_NAMESPACE
29
30class QLineEdit;
31
33{
34 Q_DECLARE_PUBLIC(QKeySequenceEdit)
35public:
36 void init();
37 int translateModifiers(Qt::KeyboardModifiers state, const QString &text);
38 void resetState();
39 void finishEditing();
41 { keySequence = QKeySequence(key[0], key[1], key[2], key[3]); }
42
43 QLineEdit *lineEdit;
45 int keyNum;
51};
52
53QT_END_NAMESPACE
54
55#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)