Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qkeysequence_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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
4#ifndef QKEYSEQUENCE_P_H
5#define QKEYSEQUENCE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of qapplication_*.cpp, qwidget*.cpp and qfiledialog.cpp. This header
13// file may change from version to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include "qkeysequence.h"
20
21#include <algorithm>
22
24
26
28{
33};
34
36{
37public:
38 enum { MaxKeyCount = 4 }; // also used in QKeySequenceEdit
39 constexpr QKeySequencePrivate() : ref(1), key{} {}
41 {
42 std::copy(copy.key, copy.key + MaxKeyCount,
44 }
48 // used in dbusmenu
49 Q_GUI_EXPORT static QString keyName(int key, QKeySequence::SequenceFormat format);
51};
52
54
55#endif //QKEYSEQUENCE_P_H
\inmodule QtCore
Definition qatomic.h:112
constexpr QKeySequencePrivate()
static Q_GUI_EXPORT QString keyName(int key, QKeySequence::SequenceFormat format)
static QString encodeString(int key, QKeySequence::SequenceFormat format)
QKeySequencePrivate(const QKeySequencePrivate &copy)
static int decodeString(QString accel, QKeySequence::SequenceFormat format)
SequenceFormat
\value NativeText The key sequence as a platform specific string.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
static jboolean copy(JNIEnv *, jobject)
#define QT_MAKE_CHECKED_ARRAY_ITERATOR(x, N)
GLuint64 key
GLint ref
GLint GLsizei GLsizei GLenum format
#define QT_REQUIRE_CONFIG(feature)
unsigned char uchar
Definition qtypes.h:27
unsigned int uint
Definition qtypes.h:29
QKeyCombination shortcut
QKeySequence::StandardKey standardKey