locale updates fixed
This commit is contained in:
parent
959ebfd38a
commit
e2ca55819e
|
@ -238,7 +238,7 @@ void QskInputCompositionModel::sendPreeditTextEvent( const QString& text )
|
||||||
|
|
||||||
const QInputMethodEvent::Attribute attribute(
|
const QInputMethodEvent::Attribute attribute(
|
||||||
QInputMethodEvent::TextFormat, 0, text.length(), format );
|
QInputMethodEvent::TextFormat, 0, text.length(), format );
|
||||||
|
|
||||||
QInputMethodEvent event( text, { attribute } );
|
QInputMethodEvent event( text, { attribute } );
|
||||||
context()->sendEventToInputItem( &event );
|
context()->sendEventToInputItem( &event );
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ public:
|
||||||
QPointer< QQuickItem > inputItem;
|
QPointer< QQuickItem > inputItem;
|
||||||
|
|
||||||
// item, wher the user enters texts/keys
|
// item, wher the user enters texts/keys
|
||||||
QPointer< QQuickItem > inputPanel;
|
QPointer< QQuickItem > inputPanel;
|
||||||
|
|
||||||
// popup or window embedding the inputPanel
|
// popup or window embedding the inputPanel
|
||||||
QskPopup* inputPopup = nullptr;
|
QskPopup* inputPopup = nullptr;
|
||||||
|
@ -352,6 +352,7 @@ void QskInputContext::showInputPanel()
|
||||||
inputPopup->setVisible( true );
|
inputPopup->setVisible( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update( Qt::ImQueryAll );
|
||||||
inputPanel->setVisible( true );
|
inputPanel->setVisible( true );
|
||||||
|
|
||||||
connect( inputPanel->window(), &QskWindow::visibleChanged,
|
connect( inputPanel->window(), &QskWindow::visibleChanged,
|
||||||
|
@ -631,7 +632,7 @@ bool QskInputContext::eventFilter( QObject* object, QEvent* event )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch( static_cast<int>( event->type() ) )
|
switch( static_cast< int >( event->type() ) )
|
||||||
{
|
{
|
||||||
case QskEvent::GeometryChange:
|
case QskEvent::GeometryChange:
|
||||||
{
|
{
|
||||||
|
|
|
@ -288,7 +288,7 @@ qreal QskVirtualKeyboard::widthForHeight( qreal height ) const
|
||||||
|
|
||||||
qreal width = height / ratio;
|
qreal width = height / ratio;
|
||||||
width += margins.left() + margins.right();
|
width += margins.left() + margins.right();
|
||||||
|
|
||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue