Changeset 56322 in webkit


Ignore:
Timestamp:
Mar 21, 2010 4:21:05 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-21 Kristian Amlie <kristian.amlie@nokia.com>

Reviewed by Simon Hausmann.

Fixed updating the VKB display when inputting into QGraphicsWebView.
https://bugs.webkit.org/show_bug.cgi?id=36292

  • Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::_q_updateMicroFocus): (QGraphicsWebView::setPage):
  • Api/qgraphicswebview.h:
Location:
trunk/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qgraphicswebview.cpp

    r56260 r56322  
    4141#include <QtGui/qscrollbar.h>
    4242#include <QtGui/qstyleoption.h>
     43#include <QtGui/qinputcontext.h>
    4344#if defined(Q_WS_X11)
    4445#include <QX11Info>
     
    135136    void _q_scaleChanged();
    136137
     138    void _q_updateMicroFocus();
     139
    137140    QGraphicsWebView* q;
    138141    QWebPage* page;
     
    242245
    243246    emit q->loadFinished(success);
     247}
     248
     249void QGraphicsWebViewPrivate::_q_updateMicroFocus()
     250{
     251#if !defined(QT_NO_IM) && (defined(Q_WS_X11) || defined(Q_WS_QWS) || defined(Q_OS_SYMBIAN))
     252    // Ideally, this should be handled by a common call to an updateMicroFocus function
     253    // in QGraphicsItem. See http://bugreports.qt.nokia.com/browse/QTBUG-7578.
     254    QList<QGraphicsView*> views = q->scene()->views();
     255    for (int c = 0; c < views.size(); ++c) {
     256        QInputContext* ic = views.at(c)->inputContext();
     257        if (ic)
     258            ic->update();
     259    }
     260#endif
    244261}
    245262
     
    719736    connect(d->page, SIGNAL(linkClicked(QUrl)),
    720737            this, SIGNAL(linkClicked(QUrl)));
     738    connect(d->page, SIGNAL(microFocusChanged()),
     739            this, SLOT(_q_updateMicroFocus()));
    721740}
    722741
  • trunk/WebKit/qt/Api/qgraphicswebview.h

    r56184 r56322  
    143143private:
    144144    Q_PRIVATE_SLOT(d, void _q_doLoadFinished(bool success))
     145    Q_PRIVATE_SLOT(d, void _q_updateMicroFocus())
    145146    // we don't want to change the moc based on USE() macro, so this function is here
    146147    // but will be empty if ACCLERATED_COMPOSITING is disabled
  • trunk/WebKit/qt/ChangeLog

    r56260 r56322  
     12010-03-21  Kristian Amlie  <kristian.amlie@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Fixed updating the VKB display when inputting into QGraphicsWebView.
     6        https://bugs.webkit.org/show_bug.cgi?id=36292
     7
     8        * Api/qgraphicswebview.cpp:
     9        (QGraphicsWebViewPrivate::_q_updateMicroFocus):
     10        (QGraphicsWebView::setPage):
     11        * Api/qgraphicswebview.h:
     12
    1132010-03-19  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    214
Note: See TracChangeset for help on using the changeset viewer.