Changeset 101165 in webkit
- Timestamp:
- Nov 25, 2011, 4:54:15 AM (15 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/API/qt/qquickwebpage.cpp (modified) (3 diffs)
-
UIProcess/API/qt/qquickwebpage_p.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r101164 r101165 1 2011-11-25 Simon Hausmann <simon.hausmann@nokia.com> 2 3 [Qt] Eliminate warnings about the deprecated QQuickCanvas::sceneGraphEngine() function. 4 5 Reviewed by Andreas Kling. 6 7 We use the function in question to find out if we can connect to the scene graph's 8 afterRendering signal. The signal has been moved into QQuickCanvas right away, so 9 we can connect to it as soon as we have a canvas. 10 11 * UIProcess/API/qt/qquickwebpage.cpp: 12 (QQuickWebPagePrivate::initializeSceneGraphConnections): 13 * UIProcess/API/qt/qquickwebpage_p.h: 14 1 15 2011-11-24 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> 2 16 -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebpage.cpp
r101164 r101165 29 29 #include <QtCore/QUrl> 30 30 #include <QtDeclarative/QQuickCanvas> 31 #include <QtDeclarative/QSGEngine>32 31 33 32 QQuickWebPage::QQuickWebPage(QQuickItem* parent) … … 182 181 return; 183 182 paintingIsInitialized = true; 184 if (q->sceneGraphEngine()) 185 _q_onSceneGraphInitialized(); 186 else 187 QObject::connect(q->canvas(), SIGNAL(sceneGraphInitialized()), q, SLOT(_q_onSceneGraphInitialized())); 183 QObject::connect(q->canvas(), SIGNAL(afterRendering()), q, SLOT(_q_onAfterSceneRender()), Qt::DirectConnection); 188 184 } 189 185 … … 244 240 } 245 241 246 void QQuickWebPagePrivate::_q_onSceneGraphInitialized()247 {248 QSGEngine* engine = q->sceneGraphEngine();249 QObject::connect(engine, SIGNAL(afterRendering()), q, SLOT(_q_onAfterSceneRender()), Qt::DirectConnection);250 }251 252 242 #include "moc_qquickwebpage_p.cpp" -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebpage_p.h
r100955 r101165 70 70 private: 71 71 Q_PRIVATE_SLOT(d, void _q_onAfterSceneRender()); 72 Q_PRIVATE_SLOT(d, void _q_onSceneGraphInitialized());73 72 74 73 QQuickWebPagePrivate* d;
Note:
See TracChangeset
for help on using the changeset viewer.