|
@@ -39,7 +39,7 @@ FreeVirtualKeyboardInputContextPrivate::FreeVirtualKeyboardInputContextPrivate()
|
|
|
Visible(false),
|
|
|
InputEngine(new DeclarativeInputEngine())
|
|
|
{
|
|
|
-
|
|
|
+ qDebug() << "FreeVirtualKeyboardInputContextPrivate :: CONSTRUCTOR";
|
|
|
}
|
|
|
|
|
|
|
|
@@ -60,7 +60,7 @@ FreeVirtualKeyboardInputContext::FreeVirtualKeyboardInputContext() :
|
|
|
//==============================================================================
|
|
|
FreeVirtualKeyboardInputContext::~FreeVirtualKeyboardInputContext()
|
|
|
{
|
|
|
-
|
|
|
+ qDebug( "FreeVirtualKeyboardInputContext DESTRUCTOR");
|
|
|
}
|
|
|
|
|
|
|
|
@@ -186,19 +186,19 @@ void FreeVirtualKeyboardInputContext::setFocusObject(QObject *object)
|
|
|
ensureFocusedObjectVisible();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//==============================================================================
|
|
|
void FreeVirtualKeyboardInputContext::ensureFocusedObjectVisible()
|
|
|
{
|
|
|
// If the keyboard is hidden, no scrollable element exists or the keyboard
|
|
|
// is just animating, then we leave here
|
|
|
- if (!d->Visible || !d->Flickable || d->InputEngine->isAnimating())
|
|
|
+ if (!d->Visible || !d->Flickable || d->InputEngine->isAnimating() )
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
qDebug() << "FreeVirtualKeyboardInputContext::ensureFocusedObjectVisible";
|
|
|
QRectF FocusItemRect(0, 0, d->FocusItem->width(), d->FocusItem->height());
|
|
|
+
|
|
|
FocusItemRect = d->Flickable->mapRectFromItem(d->FocusItem, FocusItemRect);
|
|
|
qDebug() << "FocusItemRect: " << FocusItemRect;
|
|
|
qDebug() << "Content origin: " << QPointF(d->Flickable->contentX(),
|