summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-20 20:01:02 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-20 20:01:02 -0500
commit5759106d508a5b3d7dff4aaf6c0e65e847077d6d (patch)
tree385728f5116d27b5d30c1cbfec50c38667971c18
parent467f30f25e3479ad1be41e786c871c11d4da182f (diff)
downloadexperimental-5759106d508a5b3d7dff4aaf6c0e65e847077d6d.tar.gz
experimental-5759106d508a5b3d7dff4aaf6c0e65e847077d6d.zip
Convert property/enum macros to TQ syntax
-rwxr-xr-xqt3-tqt3/convert_qt_itself_qt3_batch49
-rwxr-xr-xqt3-tqt3/create_tqt3_from_qt31
2 files changed, 10 insertions, 0 deletions
diff --git a/qt3-tqt3/convert_qt_itself_qt3_batch4 b/qt3-tqt3/convert_qt_itself_qt3_batch4
new file mode 100755
index 0000000..0cb8f89
--- /dev/null
+++ b/qt3-tqt3/convert_qt_itself_qt3_batch4
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_PROPERTY/TQ_PROPERTY/g' {} \;
+find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_ENUMS/TQ_ENUMS/g' {} \;
+find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_SETS/TQ_SETS/g' {} \;
+find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_OVERRIDE/TQ_OVERRIDE/g' {} \;
+find ./ -type f -iname "*" -not -iwholename '*.git*' -exec sed -i 's/Q_CLASSINFO/TQ_CLASSINFO/g' {} \;
+
+exit 0
diff --git a/qt3-tqt3/create_tqt3_from_qt3 b/qt3-tqt3/create_tqt3_from_qt3
index fc9232a..e5ae5b5 100755
--- a/qt3-tqt3/create_tqt3_from_qt3
+++ b/qt3-tqt3/create_tqt3_from_qt3
@@ -10,6 +10,7 @@ patch -p0 < ../tqt3_fixups_batch3.diff
../convert_qt_itself_qt3_batch3
patch -p0 < ../tqt3_bin_rename.diff
patch -p0 < ../tqt3_fixups_batch4.diff
+../convert_qt_itself_qt3_batch4
# Regenerate moc files
cd src/moc/