summaryrefslogtreecommitdiffstats
path: root/experimental/tqtinterface/conversion_scripts/convert_qt_itself9
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/tqtinterface/conversion_scripts/convert_qt_itself9')
-rwxr-xr-xexperimental/tqtinterface/conversion_scripts/convert_qt_itself957
1 files changed, 57 insertions, 0 deletions
diff --git a/experimental/tqtinterface/conversion_scripts/convert_qt_itself9 b/experimental/tqtinterface/conversion_scripts/convert_qt_itself9
new file mode 100755
index 000000000..789877d9a
--- /dev/null
+++ b/experimental/tqtinterface/conversion_scripts/convert_qt_itself9
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+find ./ -type f -iname "*" -exec sed -i 's/TQT_VERSION/\[\[\[TQT_VERSION IS DEPRECATED\]\]\]/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/CONSETQUENTIAL/CONSEQUENTIAL/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqfind\./find\./g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqdevice\./device\./g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqfind\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/find\1/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqreplace\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/replace\1/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqcontains\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/contains\1/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqfind \([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/find \1/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqreplace \([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/replace \1/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqcontains \([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/contains \1/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqstatus\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/status\1/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqStatus\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/Status\1/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/findRev/tqfindRev/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/findRef/tqfindRef/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/qMakePair/tqMakePair/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/\.arg(/\.tqarg(/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/::clipboard()/::tqclipboard()/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqStatusBar/StatusBar/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/sockettqStatus/socketStatus/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/ranstqparent/ransparent/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/painttqdevice/paintdevice/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/staticTQString/staticQString/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/exittqStatus/exitStatus/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/utqmask/umask/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQGpgME/QGpgME/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/xTQGantt/xQGantt/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQSync/QSync/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQtDebugMsg/QtDebugMsg/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQtWarningMsg/QtWarningMsg/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQtFatalMsg/QtFatalMsg/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQCStringList/QCStringList/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQLayoutStruct/QLayoutStruct/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQ_CHECK_PTR/Q_CHECK_PTR/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQUEST/QUEST/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQUENCE/QUENCE/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQPARTICI/QPARTICI/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/OPATQUE/OPAQUE/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQ_ENUMS/Q_ENUMS/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TTQ/TQ/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/#include \"\(.*\)\.tqmoc\"/#include \"\1\.moc\"/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/#include <\(.*\)\.tqmoc>/#include <\1\.moc>/g' {} \;
+
+find ./ -type f -iname "*" -exec perl -i -p -e 's/TQ_OBJECT\n/Q_OBJECT\n TQ_OBJECT\n/' {} \;
+find ./ -type f -iname "*" -exec perl -i -p -e 's/Q_OBJECT\nQ_OBJECT\n TQ_OBJECT\n/Q_OBJECT\n TQ_OBJECT\n/' {} \;
+
+# NOTE
+# These should be rerun after manual Qt4 porting completion
+
+find ./ -type f -iname "*" -exec sed -i 's/Qt::StrongFocus/TQ_StrongFocus/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/Qt::NoFocus/TQ_NoFocus/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/Qt::WheelFocus/TQ_WheelFocus/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/Qt::ClickFocus/TQ_ClickFocus/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/Qt::TabFocus/TQ_TabFocus/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/Qt::FocusPolicy/TQ_FocusPolicy/g' {} \;