Changeset 56322 in webkit
- Timestamp:
- Mar 21, 2010 4:21:05 PM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qgraphicswebview.cpp
r56260 r56322 41 41 #include <QtGui/qscrollbar.h> 42 42 #include <QtGui/qstyleoption.h> 43 #include <QtGui/qinputcontext.h> 43 44 #if defined(Q_WS_X11) 44 45 #include <QX11Info> … … 135 136 void _q_scaleChanged(); 136 137 138 void _q_updateMicroFocus(); 139 137 140 QGraphicsWebView* q; 138 141 QWebPage* page; … … 242 245 243 246 emit q->loadFinished(success); 247 } 248 249 void 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 244 261 } 245 262 … … 719 736 connect(d->page, SIGNAL(linkClicked(QUrl)), 720 737 this, SIGNAL(linkClicked(QUrl))); 738 connect(d->page, SIGNAL(microFocusChanged()), 739 this, SLOT(_q_updateMicroFocus())); 721 740 } 722 741 -
trunk/WebKit/qt/Api/qgraphicswebview.h
r56184 r56322 143 143 private: 144 144 Q_PRIVATE_SLOT(d, void _q_doLoadFinished(bool success)) 145 Q_PRIVATE_SLOT(d, void _q_updateMicroFocus()) 145 146 // we don't want to change the moc based on USE() macro, so this function is here 146 147 // but will be empty if ACCLERATED_COMPOSITING is disabled -
trunk/WebKit/qt/ChangeLog
r56260 r56322 1 2010-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 1 13 2010-03-19 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 14
Note: See TracChangeset
for help on using the changeset viewer.