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
v3.5.13-sru
tpearson 14 years ago
parent c2c0603708
commit 02c81d1c6b

@ -5,7 +5,8 @@ if [[ $1 == "" ]]; then
echo "Usage: tqt-replace <input_file>" echo "Usage: tqt-replace <input_file>"
else else
if [[ $QT_VER == 3 ]]; then 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/TQT\([^_]\)/QT\1/g' "$1"
sed -i 's/Q_SLOTS>/slots>/g' "$1" sed -i 's/Q_SLOTS>/slots>/g' "$1"
sed -i 's/Q_SIGNALS>/signals>/g' "$1" sed -i 's/Q_SIGNALS>/signals>/g' "$1"

@ -6,7 +6,8 @@ if [[ $1 == "" ]]; then
else else
if [[ $QT_VER == 3 ]]; then if [[ $QT_VER == 3 ]]; then
cat $1 | \ 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/TQT\([^_]\)/QT\1/g' | \
sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g'
fi fi

@ -6,7 +6,8 @@ if [[ $1 == "" ]]; then
else else
if [[ $QT_VERSION == 3 ]]; then if [[ $QT_VERSION == 3 ]]; then
cat $1 | \ 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/TQT\([^_]\)/QT\1/g' | \
sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g'
fi fi

@ -5,7 +5,8 @@ if [[ $1 == "" ]]; then
echo "Usage: tqt-replace <input_file>" echo "Usage: tqt-replace <input_file>"
else else
if [[ $QT_VERSION == 3 ]]; then 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/TQT\([^_]\)/QT\1/g' "$1"
sed -i 's/Q_SLOTS>/slots>/g' "$1" sed -i 's/Q_SLOTS>/slots>/g' "$1"
sed -i 's/Q_SIGNALS>/signals>/g' "$1" sed -i 's/Q_SIGNALS>/signals>/g' "$1"

Loading…
Cancel
Save