summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt-replace
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqt-replace')
-rwxr-xr-xqtinterface/tqt-replace3
1 files changed, 2 insertions, 1 deletions
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 <input_file>"
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"