Use only Q_OBJECT instead of both TQ_OBJECT and Q_OBJECT

pull/1/head
Timothy Pearson 12 years ago
parent 7aaf564f56
commit 0d688e3383

@ -4,5 +4,5 @@ QT_VERSION=@QT_VERSION@
if [[ $1 == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
cat $1
cat $1 | sed 's/^Q_OBJECT/TQ_OBJECT/g' | sed 's/\([^T]\)Q_OBJECT/\1TQ_OBJECT/g'
fi

@ -6,5 +6,7 @@ if [[ $1 == "" ]]; then
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

@ -67,7 +67,7 @@ Boston, MA 02110-1301, USA.
#ifdef TQT_REAL_TQT
#define Qt TQt
#ifndef TQT_NO_COMPAT_NAMES
#define Q_OBJECT /* UNUSED */
#define Q_OBJECT TQ_OBJECT
#endif /* TQT_NO_COMPAT_NAMES */
#else /* TQT_REAL_TQT */
#define TQ_OBJECT /* UNUSED */

Loading…
Cancel
Save