Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit abc07a72ce
)
pull/17/head
parent
872c778e98
commit
fae2d3add1
@ -1,34 +0,0 @@
|
||||
#!/bin/bash
|
||||
QT_VER=X
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "Usage: tqt-replace <input_file>"
|
||||
else
|
||||
sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1"
|
||||
sed -i 's/\([^_]\)TQ\([^T_]\)/\1Q\2/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"
|
||||
sed -i 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' "$1"
|
||||
sed -i 's/tqApp/qApp/g' "$1"
|
||||
sed -i 's/\([ \t]\)tq\([^:(_)\t ]\)/\1\2/g' "$1"
|
||||
sed -i 's/TQ_PROPERTY/Q_PROPERTY/g' "$1"
|
||||
sed -i 's/TQ_ENUMS/Q_ENUMS/g' "$1"
|
||||
sed -i 's/TQ_SETS/Q_SETS/g' "$1"
|
||||
sed -i 's/TQ_OVERRIDE/Q_OVERRIDE/g' "$1"
|
||||
sed -i 's/TQ_CLASSINFO/Q_CLASSINFO/g' "$1"
|
||||
sed -i 's/Qt::Orientation/Orientation/g' "$1"
|
||||
sed -i 's/TQ_INT8/Q_INT8/g' "$1"
|
||||
sed -i 's/TQ_INT16/Q_INT16/g' "$1"
|
||||
sed -i 's/TQ_INT32/Q_INT32/g' "$1"
|
||||
sed -i 's/TQ_INT64/Q_INT64/g' "$1"
|
||||
sed -i 's/TQ_UINT8/Q_UINT8/g' "$1"
|
||||
sed -i 's/TQ_UINT16/Q_UINT16/g' "$1"
|
||||
sed -i 's/TQ_UINT32/Q_UINT32/g' "$1"
|
||||
sed -i 's/TQ_UINT64/Q_UINT64/g' "$1"
|
||||
sed -i 's/TQ_LONG/Q_LONG/g' "$1"
|
||||
sed -i 's/TQ_LLONG/Q_LLONG/g' "$1"
|
||||
sed -i 's/TQ_ULONG/Q_ULONG/g' "$1"
|
||||
sed -i 's/TQ_ULLONG/Q_ULLONG/g' "$1"
|
||||
exit 0
|
||||
fi
|
@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
QT_VER=X
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "Usage: tqt-replace-stream <filename>"
|
||||
else
|
||||
cat "$1" | \
|
||||
sed 's/^TQ\([^T_]\)/Q\1/g' | \
|
||||
sed 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' | \
|
||||
sed 's/TQT\([^_]\)/QT\1/g' | \
|
||||
sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' | \
|
||||
sed 's/tqApp/qApp/g' | \
|
||||
sed 's/\([ \t]\)tq\([^:(_)\t ]\)/\1\2/g' | \
|
||||
sed 's/TQ_PROPERTY/Q_PROPERTY/g' | \
|
||||
sed 's/TQ_ENUMS/Q_ENUMS/g' | \
|
||||
sed 's/TQ_SETS/Q_SETS/g' | \
|
||||
sed 's/TQ_OVERRIDE/Q_OVERRIDE/g' | \
|
||||
sed 's/TQ_CLASSINFO/Q_CLASSINFO/g' | \
|
||||
sed 's/Qt::Orientation/Orientation/g' | \
|
||||
sed 's/TQ_INT8/Q_INT8/g' | \
|
||||
sed 's/TQ_INT16/Q_INT16/g' | \
|
||||
sed 's/TQ_INT32/Q_INT32/g' | \
|
||||
sed 's/TQ_INT64/Q_INT64/g' | \
|
||||
sed 's/TQ_UINT8/Q_UINT8/g' | \
|
||||
sed 's/TQ_UINT16/Q_UINT16/g' | \
|
||||
sed 's/TQ_UINT32/Q_UINT32/g' | \
|
||||
sed 's/TQ_UINT64/Q_UINT64/g' | \
|
||||
sed 's/TQ_LONG/Q_LONG/g' | \
|
||||
sed 's/TQ_LLONG/Q_LLONG/g' | \
|
||||
sed 's/TQ_ULONG/Q_ULONG/g' | \
|
||||
sed 's/TQ_ULLONG/Q_ULLONG/g'
|
||||
fi
|
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
QT_VERSION=@QT_VERSION@
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "Usage: tqt-replace-stream <filename>"
|
||||
else
|
||||
cat "$1" | sed 's/^Q_OBJECT/TQ_OBJECT/g' | sed 's/\([^T]\)Q_OBJECT/\1TQ_OBJECT/g'
|
||||
fi
|
@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
QT_VERSION=@QT_VERSION@
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "Usage: tqt-replace-stream <filename>"
|
||||
else
|
||||
cat "$1" | \
|
||||
sed 's/^TQ\([^T_]\)/Q\1/g' | \
|
||||
sed 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' | \
|
||||
sed 's/TQT\([^_]\)/QT\1/g' | \
|
||||
sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' | \
|
||||
sed 's/tqApp/qApp/g' | \
|
||||
sed 's/\([ \t]\)tq\([^:(_)\t ]\)/\1\2/g' | \
|
||||
sed 's/TQ_PROPERTY/Q_PROPERTY/g' | \
|
||||
sed 's/TQ_ENUMS/Q_ENUMS/g' | \
|
||||
sed 's/TQ_SETS/Q_SETS/g' | \
|
||||
sed 's/TQ_OVERRIDE/Q_OVERRIDE/g' | \
|
||||
sed 's/TQ_CLASSINFO/Q_CLASSINFO/g' | \
|
||||
sed 's/Qt::Orientation/Orientation/g' | \
|
||||
sed 's/TQ_INT8/Q_INT8/g' | \
|
||||
sed 's/TQ_INT16/Q_INT16/g' | \
|
||||
sed 's/TQ_INT32/Q_INT32/g' | \
|
||||
sed 's/TQ_INT64/Q_INT64/g' | \
|
||||
sed 's/TQ_UINT8/Q_UINT8/g' | \
|
||||
sed 's/TQ_UINT16/Q_UINT16/g' | \
|
||||
sed 's/TQ_UINT32/Q_UINT32/g' | \
|
||||
sed 's/TQ_UINT64/Q_UINT64/g' | \
|
||||
sed 's/TQ_LONG/Q_LONG/g' | \
|
||||
sed 's/TQ_LLONG/Q_LLONG/g' | \
|
||||
sed 's/TQ_ULONG/Q_ULONG/g' | \
|
||||
sed 's/TQ_ULLONG/Q_ULLONG/g'
|
||||
fi
|
@ -1,34 +0,0 @@
|
||||
#!/bin/bash
|
||||
QT_VERSION=@QT_VERSION@
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "Usage: tqt-replace <input_file>"
|
||||
else
|
||||
sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1"
|
||||
sed -i 's/\([^_]\)TQ\([^T_]\)/\1Q\2/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"
|
||||
sed -i 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' "$1"
|
||||
sed -i 's/tqApp/qApp/g' "$1"
|
||||
sed -i 's/\([ \t]\)tq\([^:(_)\t ]\)/\1\2/g' "$1"
|
||||
sed -i 's/TQ_PROPERTY/Q_PROPERTY/g' "$1"
|
||||
sed -i 's/TQ_ENUMS/Q_ENUMS/g' "$1"
|
||||
sed -i 's/TQ_SETS/Q_SETS/g' "$1"
|
||||
sed -i 's/TQ_OVERRIDE/Q_OVERRIDE/g' "$1"
|
||||
sed -i 's/TQ_CLASSINFO/Q_CLASSINFO/g' "$1"
|
||||
sed -i 's/Qt::Orientation/Orientation/g' "$1"
|
||||
sed -i 's/TQ_INT8/Q_INT8/g' "$1"
|
||||
sed -i 's/TQ_INT16/Q_INT16/g' "$1"
|
||||
sed -i 's/TQ_INT32/Q_INT32/g' "$1"
|
||||
sed -i 's/TQ_INT64/Q_INT64/g' "$1"
|
||||
sed -i 's/TQ_UINT8/Q_UINT8/g' "$1"
|
||||
sed -i 's/TQ_UINT16/Q_UINT16/g' "$1"
|
||||
sed -i 's/TQ_UINT32/Q_UINT32/g' "$1"
|
||||
sed -i 's/TQ_UINT64/Q_UINT64/g' "$1"
|
||||
sed -i 's/TQ_LONG/Q_LONG/g' "$1"
|
||||
sed -i 's/TQ_LLONG/Q_LLONG/g' "$1"
|
||||
sed -i 's/TQ_ULONG/Q_ULONG/g' "$1"
|
||||
sed -i 's/TQ_ULLONG/Q_ULLONG/g' "$1"
|
||||
exit 0
|
||||
fi
|
Loading…
Reference in new issue