const added

This commit is contained in:
Uwe Rathmann 2018-03-25 16:17:46 +02:00
parent e1ca64c6a3
commit 374f39c87b
2 changed files with 2 additions and 3 deletions

View File

@ -707,7 +707,7 @@ void QskInputPanel::timerEvent( QTimerEvent* e )
}
}
QskInputPanel::KeyData& QskInputPanel::keyDataAt( int keyIndex )
QskInputPanel::KeyData& QskInputPanel::keyDataAt( int keyIndex ) const
{
const auto row = keyIndex / KeyCount;
const auto col = keyIndex % KeyCount;
@ -912,7 +912,6 @@ void QskInputPanel::updateLocale( const QLocale& locale )
default:
qWarning() << "QskInputPanel: unsupported locale:" << locale;
m_data->currentLayout = &qskInputPanelLayouts.en_US;
}
Q_EMIT displayLanguageNameChanged();

View File

@ -92,7 +92,7 @@ protected:
virtual void timerEvent( QTimerEvent* ) override;
private:
KeyData& keyDataAt( int );
KeyData& keyDataAt( int ) const;
void handleKey( int );
void compose( Qt::Key );