mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
constify variable in QKeyMapper::clearMappings()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a1578ab9b2
commit
d829b11c9c
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ QKeyMapper::~QKeyMapper()
|
||||||
void QKeyMapper::clearMappings()
|
void QKeyMapper::clearMappings()
|
||||||
{
|
{
|
||||||
XIM im = XOpenIM(qt_x11Data->display, NULL, NULL, NULL);
|
XIM im = XOpenIM(qt_x11Data->display, NULL, NULL, NULL);
|
||||||
QString imlocale = QString::fromLatin1(XLocaleOfIM(im));
|
const QString imlocale = QString::fromLatin1(XLocaleOfIM(im));
|
||||||
keyboardInputLocale = QLocale(imlocale);
|
keyboardInputLocale = QLocale(imlocale);
|
||||||
XCloseIM(im);
|
XCloseIM(im);
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ bool QKeyMapper::translateKeyEvent(QWidget *keyWidget, const XEvent *event)
|
||||||
QPoint pos = keyWidget->mapFromGlobal(globalPos);
|
QPoint pos = keyWidget->mapFromGlobal(globalPos);
|
||||||
QContextMenuEvent e(QContextMenuEvent::Keyboard, pos, globalPos);
|
QContextMenuEvent e(QContextMenuEvent::Keyboard, pos, globalPos);
|
||||||
qt_sendSpontaneousEvent(keyWidget, &e);
|
qt_sendSpontaneousEvent(keyWidget, &e);
|
||||||
if(e.isAccepted())
|
if (e.isAccepted())
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue