You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tqtinterface/qtinterface/tqt-replace-tqt3.cmake

13 lines
278 B

#!/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