From 02c81d1c6b2e174f3f82006c6fbac9fbe2718e55 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 14 May 2011 06:24:27 +0000 Subject: Fix handling of TQT_TQ* in .ui files git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1231776 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtinterface/tqt-replace | 3 ++- qtinterface/tqt-replace-stream | 3 ++- qtinterface/tqt-replace-stream.cmake | 3 ++- qtinterface/tqt-replace.cmake | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'qtinterface') diff --git a/qtinterface/tqt-replace b/qtinterface/tqt-replace index e0b9e2b..a1ed332 100755 --- a/qtinterface/tqt-replace +++ b/qtinterface/tqt-replace @@ -5,7 +5,8 @@ if [[ $1 == "" ]]; then echo "Usage: tqt-replace " else if [[ $QT_VER == 3 ]]; then - sed -i 's/TQ\([^T_]\)/Q\1/g' "$1" + sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1" + sed -i 's/[^_]TQ\([^T_]\)/Q\1/g' "$1" sed -i 's/TQT\([^_]\)/QT\1/g' "$1" sed -i 's/Q_SLOTS>/slots>/g' "$1" sed -i 's/Q_SIGNALS>/signals>/g' "$1" diff --git a/qtinterface/tqt-replace-stream b/qtinterface/tqt-replace-stream index ea20373..1b670c1 100755 --- a/qtinterface/tqt-replace-stream +++ b/qtinterface/tqt-replace-stream @@ -6,7 +6,8 @@ if [[ $1 == "" ]]; then else if [[ $QT_VER == 3 ]]; then cat $1 | \ - sed 's/TQ\([^T_]\)/Q\1/g' | \ + sed 's/^TQ\([^T_]\)/Q\1/g' | \ + sed 's/[^_]TQ\([^T_]\)/Q\1/g' | \ sed 's/TQT\([^_]\)/QT\1/g' | \ sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' fi diff --git a/qtinterface/tqt-replace-stream.cmake b/qtinterface/tqt-replace-stream.cmake index 076c625..2ff69ec 100755 --- a/qtinterface/tqt-replace-stream.cmake +++ b/qtinterface/tqt-replace-stream.cmake @@ -6,7 +6,8 @@ if [[ $1 == "" ]]; then else if [[ $QT_VERSION == 3 ]]; then cat $1 | \ - sed 's/TQ\([^T_]\)/Q\1/g' | \ + sed 's/^TQ\([^T_]\)/Q\1/g' | \ + sed 's/[^_]TQ\([^T_]\)/Q\1/g' | \ sed 's/TQT\([^_]\)/QT\1/g' | \ sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' fi diff --git a/qtinterface/tqt-replace.cmake b/qtinterface/tqt-replace.cmake index 704826f..1542ce4 100755 --- a/qtinterface/tqt-replace.cmake +++ b/qtinterface/tqt-replace.cmake @@ -5,7 +5,8 @@ if [[ $1 == "" ]]; then echo "Usage: tqt-replace " else if [[ $QT_VERSION == 3 ]]; then - sed -i 's/TQ\([^T_]\)/Q\1/g' "$1" + sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1" + sed -i 's/[^_]TQ\([^T_]\)/Q\1/g' "$1" sed -i 's/TQT\([^_]\)/QT\1/g' "$1" sed -i 's/Q_SLOTS>/slots>/g' "$1" sed -i 's/Q_SIGNALS>/signals>/g' "$1" -- cgit v1.2.1