Compile with refactor
authorGunnar Sletta <gunnar.sletta@nokia.com>
Fri, 29 Jul 2011 16:32:58 +0000 (18:32 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Mon, 1 Aug 2011 05:33:56 +0000 (07:33 +0200)
Change-Id: I41119370bd4823dcdfe5d4e2521d18b8d6ba8be3
Reviewed-on: http://codereview.qt.nokia.com/2417
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>

18 files changed:
src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.cpp
src/plugins/qmltooling/qmldbg_inspector/editor/boundingrecthighlighter.cpp
src/plugins/qmltooling/qmldbg_inspector/editor/colorpickertool.cpp
src/plugins/qmltooling/qmldbg_inspector/editor/livelayeritem.h
src/plugins/qmltooling/qmldbg_inspector/editor/liverubberbandselectionmanipulator.cpp
src/plugins/qmltooling/qmldbg_inspector/editor/liveselectionindicator.cpp
src/plugins/qmltooling/qmldbg_inspector/editor/liveselectionrectangle.cpp
src/plugins/qmltooling/qmldbg_inspector/editor/liveselectiontool.cpp
src/plugins/qmltooling/qmldbg_inspector/editor/subcomponentmasklayeritem.h
src/plugins/qmltooling/qmldbg_inspector/editor/toolbarcolorbox.cpp
src/plugins/qmltooling/qmldbg_inspector/editor/toolbarcolorbox.h
src/plugins/qmltooling/qmldbg_inspector/editor/zoomtool.cpp
src/plugins/qmltooling/qmldbg_inspector/qdeclarativeviewinspector.cpp
src/plugins/qmltooling/qmldbg_inspector/qmldbg_inspector.pro
src/plugins/qmltooling/qmldbg_inspector/sgselectiontool.cpp
tools/qmlplugindump/main.cpp
tools/qmlviewer/qmlruntime.cpp
tools/qmlviewer/qmlviewer.pro

index 3323d54..3cb35e5 100644 (file)
@@ -50,7 +50,7 @@
 #include <QtDeclarative/private/qdeclarativedebughelper_p.h>
 #include "QtDeclarative/private/qdeclarativeinspectorservice_p.h"
 
-#include <QtGui/QVBoxLayout>
+#include <QtWidgets/QVBoxLayout>
 #include <QtGui/QMouseEvent>
 #include <QtCore/QSettings>
 
index da9f442..98fbc7e 100644 (file)
@@ -44,7 +44,7 @@
 #include "../qdeclarativeviewinspector.h"
 #include "../qmlinspectorconstants.h"
 
-#include <QtGui/QGraphicsPolygonItem>
+#include <QtWidgets/QGraphicsPolygonItem>
 
 #include <QtCore/QTimer>
 #include <QtCore/QObject>
index 72e1380..5058f5e 100644 (file)
@@ -48,7 +48,7 @@
 #include <QtCore/QRectF>
 #include <QtGui/QRgb>
 #include <QtGui/QImage>
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
 #include <QtGui/QPalette>
 
 namespace QmlJSDebugger {
index 4dccc0b..15f9a27 100644 (file)
@@ -42,7 +42,7 @@
 #ifndef LIVELAYERITEM_H
 #define LIVELAYERITEM_H
 
-#include <QtGui/QGraphicsObject>
+#include <QtWidgets/QGraphicsObject>
 
 namespace QmlJSDebugger {
 
index c57bc0e..036eb97 100644 (file)
@@ -44,9 +44,9 @@
 #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 {
index 4e14458..2357756 100644 (file)
@@ -44,9 +44,9 @@
 #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>
 
index 9b52de1..884e192 100644 (file)
 
 #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>
index e41d70a..72c7466 100644 (file)
@@ -42,7 +42,7 @@
 #ifndef SUBCOMPONENTMASKLAYERITEM_H
 #define SUBCOMPONENTMASKLAYERITEM_H
 
-#include <QtGui/QGraphicsPolygonItem>
+#include <QtWidgets/QGraphicsPolygonItem>
 
 namespace QmlJSDebugger {
 
index 0914662..64d4035 100644 (file)
 
 #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>
index 8ef75a4..ce5ecf0 100644 (file)
@@ -42,7 +42,7 @@
 #ifndef TOOLBARCOLORBOX_H
 #define TOOLBARCOLORBOX_H
 
-#include <QtGui/QLabel>
+#include <QtWidgets/QLabel>
 #include <QtGui/QColor>
 #include <QtCore/QPoint>
 
index c8ade82..1aad9c3 100644 (file)
@@ -46,8 +46,8 @@
 #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>
index bef218c..f97ce01 100644 (file)
@@ -52,9 +52,9 @@
 #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 {
 
index 7f4d54e..d547422 100644 (file)
@@ -1,7 +1,7 @@
 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)
 
index 36e2818..653c059 100644 (file)
@@ -44,7 +44,7 @@
 #include "sghighlight.h"
 #include "sgviewinspector.h"
 
-#include <QtGui/QMenu>
+#include <QtWidgets/QMenu>
 #include <QtGui/QMouseEvent>
 #include <QtDeclarative/QSGView>
 #include <QtDeclarative/QSGItem>
index 46d3173..c553070 100644 (file)
@@ -43,7 +43,7 @@
 #include <QtDeclarative/private/qdeclarativemetatype_p.h>
 #include <QtDeclarative/private/qdeclarativeopenmetaobject_p.h>
 
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
 
 #include <QtCore/QSet>
 #include <QtCore/QMetaObject>
index ca15932..c5b94ab 100644 (file)
@@ -1426,9 +1426,9 @@ void QDeclarativeViewer::recordFrame()
         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));
index 16579bb..8dc5808 100644 (file)
@@ -1,7 +1,7 @@
 TEMPLATE = app
 CONFIG += qt uic
 DESTDIR = ../../bin
-QT += declarative qtquick1 qtquick1-private
+QT += declarative qtquick1 qtquick1-private widgets widgets-private 
 
 include(qml.pri)
 
@@ -10,6 +10,7 @@ SOURCES += main.cpp
 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