summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt-replace-tqt3.cmake
blob: 413dee5cf2e2290df9a743d2418d42e07e8730cb (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