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