Bug 214074

Summary: [WPE][Qt] Deprecation warnings
Product: WebKit Reporter: Philippe Normand <pnormand>
Component: WPE WebKitAssignee: Philippe Normand <pnormand>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Philippe Normand 2020-07-08 03:47:05 PDT
../../Source/WebKit/UIProcess/API/wpe/qt/WPEQtViewBackend.cpp:303:41: warning: 'y' is deprecated: Use position() [-Wdeprecated-declarations]
    uint32_t axis = delta.y() == event->y();
                                        ^
/usr/include/QtGui/qevent.h:230:21: note: 'y' has been explicitly marked deprecated here
    __attribute__ ((__deprecated__("Use position()")))
                    ^
../../Source/WebKit/UIProcess/API/wpe/qt/WPEQtViewBackend.cpp:309:16: warning: 'x' is deprecated: Use position() [-Wdeprecated-declarations]
        event->x(), event->y(), axis, length, modifiers() };
               ^
/usr/include/QtGui/qevent.h:228:21: note: 'x' has been explicitly marked deprecated here
    __attribute__ ((__deprecated__("Use position()")))
                    ^
../../Source/WebKit/UIProcess/API/wpe/qt/WPEQtViewBackend.cpp:309:28: warning: 'y' is deprecated: Use position() [-Wdeprecated-declarations]
        event->x(), event->y(), axis, length, modifiers() };
                           ^
/usr/include/QtGui/qevent.h:230:21: note: 'y' has been explicitly marked deprecated here
    __attribute__ ((__deprecated__("Use position()")))
                    ^
3 warnings generated.
[9/24] Building CXX object Source/WebKit/CMakeFiles/qtwpe.dir/UIProcess/API/wpe/qt/WPEQtView.cpp.o
../../Source/WebKit/UIProcess/API/wpe/qt/WPEQtView.cpp:187:39: warning: 'createTextureFromId' is deprecated: Use createTextureFromNativeObject() instead [-Wdeprecated-declarations]
    textureNode->setTexture(window()->createTextureFromId(textureId, m_size.toSize(), QQuickWindow::TextureHasAlphaChannel));
                                      ^
/usr/include/QtQuick/qquickwindow.h:162:21: note: 'createTextureFromId' has been explicitly marked deprecated here
    __attribute__ ((__deprecated__("Use createTextureFromNativeObject() instead")))
                    ^
1 warning generated.
Comment 1 Philippe Normand 2020-07-08 03:49:14 PDT
Created attachment 403767 [details]
Patch
Comment 2 Philippe Normand 2020-07-08 03:50:26 PDT
Created attachment 403768 [details]
Patch
Comment 3 EWS 2020-07-08 04:19:32 PDT
Committed r264095: <https://trac.webkit.org/changeset/264095>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 403768 [details].