#include <QtDeclarative/private/qdeclarativedebughelper_p.h>
#include "QtDeclarative/private/qdeclarativeinspectorservice_p.h"
-#include <QtGui/QVBoxLayout>
+#include <QtWidgets/QVBoxLayout>
#include <QtGui/QMouseEvent>
#include <QtCore/QSettings>
#include "../qdeclarativeviewinspector.h"
#include "../qmlinspectorconstants.h"
-#include <QtGui/QGraphicsPolygonItem>
+#include <QtWidgets/QGraphicsPolygonItem>
#include <QtCore/QTimer>
#include <QtCore/QObject>
#include <QtCore/QRectF>
#include <QtGui/QRgb>
#include <QtGui/QImage>
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
#include <QtGui/QPalette>
namespace QmlJSDebugger {
#ifndef LIVELAYERITEM_H
#define LIVELAYERITEM_H
-#include <QtGui/QGraphicsObject>
+#include <QtWidgets/QGraphicsObject>
namespace QmlJSDebugger {
#include "../qdeclarativeviewinspector_p.h"
-#include <QtGui/QGraphicsItem>
+#include <QtWidgets/QGraphicsItem>
#include <QtCore/QDebug>
#include "../qdeclarativeviewinspector_p.h"
#include "../qmlinspectorconstants.h"
-#include <QtGui/QGraphicsRectItem>
-#include <QtGui/QGraphicsObject>
-#include <QtGui/QGraphicsScene>
+#include <QtWidgets/QGraphicsRectItem>
+#include <QtWidgets/QGraphicsObject>
+#include <QtWidgets/QGraphicsScene>
#include <QtGui/QPen>
namespace QmlJSDebugger {
#include "../qmlinspectorconstants.h"
#include <QtGui/QPen>
-#include <QtGui/QGraphicsRectItem>
-#include <QtGui/QGraphicsObject>
-#include <QtGui/QGraphicsScene>
+#include <QtWidgets/QGraphicsRectItem>
+#include <QtWidgets/QGraphicsObject>
+#include <QtWidgets/QGraphicsScene>
#include <QtCore/QtDebug>
#include "../qdeclarativeviewinspector_p.h"
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
#include <QtGui/QWheelEvent>
#include <QtGui/QMouseEvent>
#include <QtGui/QClipboard>
-#include <QtGui/QMenu>
-#include <QtGui/QAction>
-#include <QtGui/QGraphicsObject>
+#include <QtWidgets/QMenu>
+#include <QtWidgets/QAction>
+#include <QtWidgets/QGraphicsObject>
#include <QtQuick1/QDeclarativeItem>
#include <QtDeclarative/QDeclarativeEngine>
#ifndef SUBCOMPONENTMASKLAYERITEM_H
#define SUBCOMPONENTMASKLAYERITEM_H
-#include <QtGui/QGraphicsPolygonItem>
+#include <QtWidgets/QGraphicsPolygonItem>
namespace QmlJSDebugger {
#include <QtGui/QPixmap>
#include <QtGui/QPainter>
-#include <QtGui/QMenu>
-#include <QtGui/QAction>
+#include <QtWidgets/QMenu>
+#include <QtWidgets/QAction>
#include <QtGui/QContextMenuEvent>
#include <QtGui/QClipboard>
-#include <QtGui/QApplication>
-#include <QtGui/QColorDialog>
+#include <QtWidgets/QApplication>
+#include <QtWidgets/QColorDialog>
#include <QtGui/QDrag>
#include <QtCore/QMimeData>
#ifndef TOOLBARCOLORBOX_H
#define TOOLBARCOLORBOX_H
-#include <QtGui/QLabel>
+#include <QtWidgets/QLabel>
#include <QtGui/QColor>
#include <QtCore/QPoint>
#include <QtGui/QMouseEvent>
#include <QtGui/QWheelEvent>
#include <QtGui/QKeyEvent>
-#include <QtGui/QMenu>
-#include <QtGui/QAction>
+#include <QtWidgets/QMenu>
+#include <QtWidgets/QAction>
#include <QtCore/QRectF>
#include <QtCore/QDebug>
#include <QtDeclarative/QDeclarativeEngine>
#include <QtDeclarative/QDeclarativeContext>
#include <QtDeclarative/QDeclarativeExpression>
-#include <QtGui/QWidget>
+#include <QtWidgets/QWidget>
#include <QtGui/QMouseEvent>
-#include <QtGui/QGraphicsObject>
+#include <QtWidgets/QGraphicsObject>
namespace QmlJSDebugger {
load(qt_module)
TARGET = qmldbg_inspector
-QT += declarative-private core-private gui-private opengl-private qtquick1
+QT += declarative-private core-private gui-private opengl-private qtquick1 widgets widgets-private
load(qt_plugin)
#include "sghighlight.h"
#include "sgviewinspector.h"
-#include <QtGui/QMenu>
+#include <QtWidgets/QMenu>
#include <QtGui/QMouseEvent>
#include <QtDeclarative/QSGView>
#include <QtDeclarative/QSGItem>
#include <QtDeclarative/private/qdeclarativemetatype_p.h>
#include <QtDeclarative/private/qdeclarativeopenmetaobject_p.h>
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
#include <QtCore/QSet>
#include <QtCore/QMetaObject>
if (frame_fmt == QLatin1String(".gif")) {
// ffmpeg can't do 32bpp with gif
QImage rgb24 = frame.convertToFormat(QImage::Format_RGB888);
- frame_stream->write((char*)rgb24.bits(),rgb24.numBytes());
+ frame_stream->write((char*)rgb24.bits(),rgb24.byteCount());
} else {
- frame_stream->write((char*)frame.bits(),frame.numBytes());
+ frame_stream->write((char*)frame.bits(),frame.byteCount());
}
} else {
frames.append(new QImage(frame));
TEMPLATE = app
CONFIG += qt uic
DESTDIR = ../../bin
-QT += declarative qtquick1 qtquick1-private
+QT += declarative qtquick1 qtquick1-private widgets widgets-private
include(qml.pri)
INCLUDEPATH += ../../include/QtDeclarative
INCLUDEPATH += ../../src/declarative/util
INCLUDEPATH += ../../src/declarative/graphicsitems
+INCLUDEPATH += ../../src/3rdparty/v8/include
DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII