This is roughly how we can port to qCDebug()

... and not lose information about the debug area.
This commit is contained in:
Sebastian Kügler 2013-12-08 16:59:43 +01:00
parent ba1be673e1
commit 7a4c678a92

View File

@ -3,14 +3,14 @@
# kDebug() becomes qDebug() in cpp files
for FS in `find $PWD -name '*.h' -o -name '*.cpp'`; do
perl -p -i -e 's/\#include \<KDebug\>/\#include \<QDebug\>/g' $FS
perl -p -i -e 's/\#include \<KDebug\>/\#include \<QDebug\>/g' $FS
perl -p -i -e 's/\#include \<kdebug\.h\>/\#include \<QDebug\>/g' $FS
perl -p -i -e 's/kDebug\(\)/qDebug()/g' $FS
# perl -p -i -e 's/\#include \<KDebug\>/\#include \<QDebug\>/g' $FS
# perl -p -i -e 's/\#include \<KDebug\>/\#include \<QDebug\>/g' $FS
# perl -p -i -e 's/\#include \<kdebug\.h\>/\#include \<QDebug\>/g' $FS
# perl -p -i -e 's/kDebug\(\)/qDebug()/g' $FS
perl -p -i -e 's/kWarning\(\)/qWarning()/g' $FS
perl -p -i -e 's/kDebug\(250\)/\/\/qDebug()/g' $FS
perl -p -i -e 's/kDebug\(96669\)/\/\/qDebug()/g' $FS
perl -p -i -e 's/kDebug\(kdbg_code\)/\/\/qDebug()/g' $FS
#
# perl -p -i -e 's/kDebug\(250\)/\/\/qDebug()/g' $FS
perl -p -i -e 's/kDebug\(7024\)/qCDebug(KUISERVER)/g' $FS
# perl -p -i -e 's/kDebug\(kdbg_code\)/\/\/qDebug()/g' $FS
done