Qt 6.x
The Qt SDK
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 <private/qwidget_p.h>
23#include <private/qkeysequence_p.h>
24
25QT_REQUIRE_CONFIG(keysequenceedit);
26
28
29class QLineEdit;
30
32{
33 Q_DECLARE_PUBLIC(QKeySequenceEdit)
34public:
35 void init();
36 int translateModifiers(Qt::KeyboardModifiers state, const QString &text);
37 void resetState();
38 void finishEditing();
40 { keySequence = QKeySequence(key[0], key[1], key[2], key[3]); }
41
44 int keyNum;
50};
51
53
54#endif // QKEYSEQUENCEEDIT_P_H
QList< QKeyCombination > finishingKeyCombinations
int translateModifiers(Qt::KeyboardModifiers state, const QString &text)
The QKeySequenceEdit widget allows to input a QKeySequence.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
The QLineEdit widget is a one-line text editor.
Definition qlineedit.h:28
Definition qlist.h:74
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
QString text
else opt state
[0]
Combined button and popup list for selecting options.
GLuint64 key
#define QT_REQUIRE_CONFIG(feature)