summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt-replace-stream-tqt3.cmake
blob: c30e5624b875f369559215ec33218e4a59529405 (plain)
1
2
3
4
5
6
7
8
#!/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