Guest User

Untitled

a guest
Jan 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. diff --git a/src/declarative/items/qsgitemsmodule.cpp b/src/declarative/items/qsgitemsmodule.cpp
  2. index 9359906..c0341ae 100644
  3. --- a/src/declarative/items/qsgitemsmodule.cpp
  4. +++ b/src/declarative/items/qsgitemsmodule.cpp
  5. @@ -77,6 +77,7 @@
  6. #include "qsgsprite_p.h"
  7. #include "qsgspriteimage_p.h"
  8. #include "qsgdragtarget_p.h"
  9. +#include "qnetworkreply.h"
  10.  
  11. static QDeclarativePrivate::AutoParentResult qsgitem_autoParent(QObject *obj, QObject *parent)
  12. {
  13. @@ -159,6 +160,7 @@ static void qt_sgitems_defineModule(const char *uri, int major, int minor)
  14. #ifndef QT_NO_ACTION
  15. qmlRegisterType<QAction>();
  16. #endif
  17. + qmlRegisterUncreatableType<QNetworkReply>(uri, major, minor, "NetworkReply", qApp->translate("Export QNetworkReply in QML", "Cannot create separate instance of NetworkReply"));
  18. qmlRegisterType<QSGPen>();
  19. qmlRegisterType<QSGFlickableVisibleArea>();
  20. qRegisterMetaType<QSGAnchorLine>("QSGAnchorLine");
Add Comment
Please, Sign In to add comment