blob: cb7de9cc22d165883d8efddf6ad07e4df64718cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
QT_VERSION=@QT_VERSION@
if [[ $1 == "" ]]; then
echo "Usage: tqt-replace <input_file>"
else
sed -i 's/Q_SLOTS>/slots>/g' "$1"
sed -i 's/Q_SIGNALS>/signals>/g' "$1"
sed -i 's/^Q_OBJECT/TQ_OBJECT/g' "$1"
sed -i 's/\([^T]\)Q_OBJECT/\1TQ_OBJECT/g' "$1"
exit 0
fi
|