summaryrefslogtreecommitdiffstats
path: root/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3
diff options
context:
space:
mode:
Diffstat (limited to 'conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3')
-rwxr-xr-xconversions/qt3-tqt3/convert_existing_qt3_app_to_tqt35
1 files changed, 2 insertions, 3 deletions
diff --git a/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3 b/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3
index 0b44ad1..647fdf7 100755
--- a/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3
+++ b/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3
@@ -3,8 +3,8 @@
find ./ -type f -iname "*.c*" -o -iname "*.h*" -o -iname "*.ui*" -o -name "*.kcfg" -o -name "*.ypp" -not -iwholename '*.git*' |\
tr "\n" "\0" |\
xargs -r0 sed -i \
- -e 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' \
- -e 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' \
+ -e 's/^Q\([A-Z]\)\([_a-zA-Z]\)/TQ\1\2/g' \
+ -e 's/\([^_]\)Q\([A-Z]\)\([_a-zA-Z]\)/\1TQ\2\3/g' \
-e 's/Qt/TQt/g' \
-e 's/TTQ/TQ/g' \
-e 's/TTQ/TQ/g' \
@@ -20,7 +20,6 @@ xargs -r0 sed -i \
# Back out changes we did not want to make
find ./ -type f -iname "*" -not -iwholename '*.git*' -print0 |\
xargs -r0 sed -i \
- -e 's/TQ_OBJECT/Q_OBJECT/g' \
-e 's/TQT_/QT_/g' \
-e 's/TQCStringList/QCStringList/g' \
-e 's/TQMAKE/QMAKE/g' \