Make QKeyMapper::possibleKeys's event argument const
To match the QPA layer (QPlatformIntegration, QPlatformKeyMapper). Change-Id: If1b4817eb334c6cdf1ccd587794701245076bd2f Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
9dfa0b5711
commit
26b279eda1
@ -34,7 +34,7 @@ QKeyMapper::~QKeyMapper()
|
||||
{
|
||||
}
|
||||
|
||||
QList<int> QKeyMapper::possibleKeys(QKeyEvent *e)
|
||||
QList<int> QKeyMapper::possibleKeys(const QKeyEvent *e)
|
||||
{
|
||||
QList<int> result = QGuiApplicationPrivate::platformIntegration()->possibleKeys(e);
|
||||
if (!result.isEmpty())
|
||||
|
@ -33,7 +33,7 @@ public:
|
||||
~QKeyMapper();
|
||||
|
||||
static QKeyMapper *instance();
|
||||
static QList<int> possibleKeys(QKeyEvent *e);
|
||||
static QList<int> possibleKeys(const QKeyEvent *e);
|
||||
|
||||
QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(QKeyMapper)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user