⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 101165 in webkit


Ignore:
Timestamp:
Nov 25, 2011, 4:54:15 AM (15 years ago)
Author:
Simon Hausmann
Message:

[Qt] Eliminate warnings about the deprecated QQuickCanvas::sceneGraphEngine() function.

Reviewed by Andreas Kling.

We use the function in question to find out if we can connect to the scene graph's
afterRendering signal. The signal has been moved into QQuickCanvas right away, so
we can connect to it as soon as we have a canvas.

  • UIProcess/API/qt/qquickwebpage.cpp:

(QQuickWebPagePrivate::initializeSceneGraphConnections):

  • UIProcess/API/qt/qquickwebpage_p.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r101164 r101165  
     12011-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
    1152011-11-24  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
    216
  • trunk/Source/WebKit2/UIProcess/API/qt/qquickwebpage.cpp

    r101164 r101165  
    2929#include <QtCore/QUrl>
    3030#include <QtDeclarative/QQuickCanvas>
    31 #include <QtDeclarative/QSGEngine>
    3231
    3332QQuickWebPage::QQuickWebPage(QQuickItem* parent)
     
    182181        return;
    183182    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);
    188184}
    189185
     
    244240}
    245241
    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 
    252242#include "moc_qquickwebpage_p.cpp"
  • trunk/Source/WebKit2/UIProcess/API/qt/qquickwebpage_p.h

    r100955 r101165  
    7070private:
    7171    Q_PRIVATE_SLOT(d, void _q_onAfterSceneRender());
    72     Q_PRIVATE_SLOT(d, void _q_onSceneGraphInitialized());
    7372
    7473    QQuickWebPagePrivate* d;
Note: See TracChangeset for help on using the changeset viewer.