fix some includes in porting script
This commit is contained in:
parent
1680e728ee
commit
a05373595d
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user