update porting script

This commit is contained in:
Marco Martin 2014-01-29 17:35:33 +01:00
parent 428c10e24c
commit 3a4093f15f

View File

@ -138,5 +138,19 @@ for FS in `find $PWD -name '*.h' -o -name '*.cpp'`; do
perl -p -i -e 's/Plasma\:\:AcceptingInputStatus/Plasma::Types::AcceptingInputStatus/g' $FS
done
# make compactrepresentation come from Plasmoid.*
# size hints come from Layout
for FS in `find $PWD -type f -name '*.qml'`; do
perl -p -i -e 's/property Component compactRepresentation/Plasmoid.compactRepresentation/g' $FS
perl -p -i -e 's/property int minimumWidth/Layout.minimumWidth/g' $FS
perl -p -i -e 's/property int minimumHeight/Layout.minimumHeight/g' $FS
perl -p -i -e 's/property int maximumWidth/Layout.maximumWidth/g' $FS
perl -p -i -e 's/property int maximumHeight/Layout.maximumHeight/g' $FS
perl -p -i -e 's/property bool fillWidth/Layout.fillWidth/g' $FS
perl -p -i -e 's/property bool fillHeight/Layout.fillHeight/g' $FS
done
for FS in `find $PWD -type f -name '*main.qml'`; do
perl -p -i -e 's/QtQuick 2.0/QtQuick 2.0\nimport org.kde.plasma.shell 2.0/g' $FS
done