fix some includes in porting script

This commit is contained in:
Sebastian Kügler 2013-06-26 01:09:51 +02:00
parent b66943c9c5
commit 377e0d72f3

View File

@ -40,7 +40,7 @@ for FS in `find $PWD -name '*.qml'`; do
perl -p -i -e 's/QtQuick 1.1/QtQuick 2.0/g' $FS perl -p -i -e 's/QtQuick 1.1/QtQuick 2.0/g' $FS
done done
exit #exit
# Change plugin definitions, this is useful if you want to # Change plugin definitions, this is useful if you want to
@ -92,6 +92,12 @@ for FS in `find $PWD -name '*.h' -o -name '*.cpp'`; do
perl -p -i -e 's/QGraphicsSceneWheel/QWheelEvent/g' $FS perl -p -i -e 's/QGraphicsSceneWheel/QWheelEvent/g' $FS
perl -p -i -e 's/QGraphicsSceneHoverEvent/QHoverEvent/g' $FS perl -p -i -e 's/QGraphicsSceneHoverEvent/QHoverEvent/g' $FS
# Fix up includes
perl -p -i -e 's/\#include \<QtDeclarative\/QQuickItem\>/\#include \<QtQuick\/QQuickItem\>/g' $FS
perl -p -i -e 's/\#include \<QtDeclarative\/QQmlContext\>/\#include \<QtQml\/QQmlContext\>/g' $FS
perl -p -i -e 's/\#include \<QtDeclarative\/QQmlEngine\>/\#include \<QtQml\/QQmlEngine\>/g' $FS
done done