summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt-replace-stream
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-14 06:24:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-14 06:24:27 +0000
commit02c81d1c6b2e174f3f82006c6fbac9fbe2718e55 (patch)
tree97bbe3e2922c3b92a763c35f003d5316136213f6 /qtinterface/tqt-replace-stream
parentc2c0603708e271d70ef63aa8ee0c87747c87e521 (diff)
downloadtqtinterface-02c81d1c6b2e174f3f82006c6fbac9fbe2718e55.tar.gz
tqtinterface-02c81d1c6b2e174f3f82006c6fbac9fbe2718e55.zip
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
Diffstat (limited to 'qtinterface/tqt-replace-stream')
-rwxr-xr-xqtinterface/tqt-replace-stream3
1 files changed, 2 insertions, 1 deletions
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