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
qapplekeymapper.mm File Reference

(422880c9db6b483543909c9336e1e032ab93fbf1)

#include <qglobal.h>
#include "qapplekeymapper_p.h"
#include <QtCore/qloggingcategory.h>
#include <QtGui/QGuiApplication>
+ Include dependency graph for qapplekeymapper.mm:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY (lcQpaKeyMapperKeys, "qt.qpa.keymapper.keys")
 
static Qt::KeyboardModifiers swapModifiersIfNeeded (const Qt::KeyboardModifiers modifiers)
 
 API_AVAILABLE (ios(13.4)) Qt
 

Variables

static constexpr std::tuple< ulong, Qt::KeyboardModifieruiKitModifierMap []
 

Function Documentation

◆ API_AVAILABLE()

◆ Q_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( lcQpaKeyMapperKeys ,
"qt.qpa.keymapper.keys"  )

◆ swapModifiersIfNeeded()

static Qt::KeyboardModifiers swapModifiersIfNeeded ( const Qt::KeyboardModifiers modifiers)
static

Definition at line 23 of file qapplekeymapper.mm.

References Qt::AA_MacDontSwapCtrlAndMeta, Qt::ControlModifier, Qt::MetaModifier, and QCoreApplication::testAttribute().

Referenced by QAppleKeyMapper::fromUIKitModifiers(), and QAppleKeyMapper::toUIKitModifiers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ uiKitModifierMap

constexpr std::tuple<ulong, Qt::KeyboardModifier> uiKitModifierMap[]
staticconstexpr
Initial value:
= {
{ UIKeyModifierShift, Qt::ShiftModifier },
{ UIKeyModifierControl, Qt::ControlModifier },
{ UIKeyModifierCommand, Qt::MetaModifier },
{ UIKeyModifierAlternate, Qt::AltModifier },
{ UIKeyModifierNumericPad, Qt::KeypadModifier }
}
@ ShiftModifier
@ ControlModifier
@ MetaModifier
@ KeypadModifier
@ AltModifier

Definition at line 684 of file qapplekeymapper.mm.

Referenced by QAppleKeyMapper::fromUIKitModifiers(), and QAppleKeyMapper::toUIKitModifiers().