From 5759106d508a5b3d7dff4aaf6c0e65e847077d6d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 20 Oct 2012 20:01:02 -0500 Subject: [PATCH] Convert property/enum macros to TQ syntax --- qt3-tqt3/convert_qt_itself_qt3_batch4 | 9 +++++++++ qt3-tqt3/create_tqt3_from_qt3 | 1 + 2 files changed, 10 insertions(+) create mode 100755 qt3-tqt3/convert_qt_itself_qt3_batch4 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/