locale updates fixed

This commit is contained in:
Uwe Rathmann 2018-04-12 13:32:28 +02:00
parent 959ebfd38a
commit e2ca55819e
3 changed files with 5 additions and 4 deletions

View File

@ -238,7 +238,7 @@ void QskInputCompositionModel::sendPreeditTextEvent( const QString& text )
const QInputMethodEvent::Attribute attribute(
QInputMethodEvent::TextFormat, 0, text.length(), format );
QInputMethodEvent event( text, { attribute } );
context()->sendEventToInputItem( &event );
}

View File

@ -89,7 +89,7 @@ public:
QPointer< QQuickItem > inputItem;
// item, wher the user enters texts/keys
QPointer< QQuickItem > inputPanel;
QPointer< QQuickItem > inputPanel;
// popup or window embedding the inputPanel
QskPopup* inputPopup = nullptr;
@ -352,6 +352,7 @@ void QskInputContext::showInputPanel()
inputPopup->setVisible( true );
}
update( Qt::ImQueryAll );
inputPanel->setVisible( true );
connect( inputPanel->window(), &QskWindow::visibleChanged,
@ -631,7 +632,7 @@ bool QskInputContext::eventFilter( QObject* object, QEvent* event )
}
else
{
switch( static_cast<int>( event->type() ) )
switch( static_cast< int >( event->type() ) )
{
case QskEvent::GeometryChange:
{

View File

@ -288,7 +288,7 @@ qreal QskVirtualKeyboard::widthForHeight( qreal height ) const
qreal width = height / ratio;
width += margins.left() + margins.right();
return height;
}