Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qshortcut_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QSHORTCUT_P_H
5#define QSHORTCUT_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 purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include "qshortcut.h"
20#include <QtGui/qkeysequence.h>
21
22#include <QtCore/qlist.h>
23#include <QtCore/qstring.h>
24#include <QtCore/private/qobject_p.h>
25
26#include <private/qshortcutmap_p.h>
27
28
30
31class QShortcutMap;
32
33/*
34 \internal
35 Private data accessed through d-pointer.
36*/
37class Q_GUI_EXPORT QShortcutPrivate : public QObjectPrivate
38{
39 Q_DECLARE_PUBLIC(QShortcut)
40public:
41 QShortcutPrivate() = default;
42
43 virtual QShortcutMap::ContextMatcher contextMatcher() const;
44 virtual bool handleWhatsThis() { return false; }
45
46 static bool simpleContextMatcher(QObject *object, Qt::ShortcutContext context);
47
48 QList<QKeySequence> sc_sequences;
51 bool sc_enabled = true;
52 bool sc_autorepeat = true;
53 QList<int> sc_ids;
54 void redoGrab(QShortcutMap &map);
55};
56
58
59#endif // QSHORTCUT_P_H
\inmodule QtCore
Definition qobject.h:103
bool(* ContextMatcher)(QObject *object, Qt::ShortcutContext context)
QList< QKeySequence > sc_sequences
Definition qshortcut_p.h:48
QString sc_whatsthis
Definition qshortcut_p.h:49
QList< int > sc_ids
Definition qshortcut_p.h:53
virtual bool handleWhatsThis()
Definition qshortcut_p.h:44
QShortcutPrivate()=default
The QShortcut class is used to create keyboard shortcuts.
Definition qshortcut.h:19
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
ShortcutContext
@ WindowShortcut
static void * context