From 376804db8788bfde1985b9d2bbc14af68e9c9260 Mon Sep 17 00:00:00 2001 From: kh1 Date: Mon, 16 Jan 2012 23:42:54 +0100 Subject: Use qDebug instead of verbose. The message handler now forwards everything to the verbosew riter anyway. Change-Id: I822f86e8f2e2e7690a3b855ed83199d2f41dc480 Reviewed-by: Tim Jenssen --- installerbuilder/installerbase/installerbase.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'installerbuilder/installerbase/installerbase.cpp') diff --git a/installerbuilder/installerbase/installerbase.cpp b/installerbuilder/installerbase/installerbase.cpp index a3c815f86..3c8f41f4f 100644 --- a/installerbuilder/installerbase/installerbase.cpp +++ b/installerbuilder/installerbase/installerbase.cpp @@ -76,7 +76,7 @@ static QSet repositories(const QStringList &arguments, const int ind QStringList items = arguments.at(index).split(QLatin1Char(',')); foreach (const QString &item, items) { set.insert(Repository(item, false)); - verbose() << "Adding custom repository:" << item << std::endl; + qDebug() << "Adding custom repository:" << item; } } else { std::cerr << "No repository specified" << std::endl; @@ -229,14 +229,14 @@ int main(int argc, char *argv[]) } if (QInstaller::isVerbose()) { - verbose() << VERSION << std::endl; - verbose() << "Arguments: " << args << std::endl; - verbose() << "Resource tree before loading the in-binary resource: " << std::endl; + qDebug() << VERSION; + qDebug() << "Arguments:" << args; + qDebug() << "Resource tree before loading the in-binary resource:"; QDir dir(QLatin1String(":/")); foreach (const QString &i, dir.entryList()) { const QByteArray ba = i.toUtf8(); - verbose() << " :/" << ba.constData() << std::endl; + qDebug().nospace() << " :/" << ba.constData(); } } @@ -262,15 +262,15 @@ int main(int argc, char *argv[]) } if (QInstaller::isVerbose()) { - verbose() << "Resource tree after loading the in-binary resource: " << std::endl; + qDebug() << "Resource tree after loading the in-binary resource:"; QDir dir = QDir(QLatin1String(":/")); foreach (const QString &i, dir.entryList()) - verbose() << QString::fromLatin1(" :/%1").arg(i) << std::endl; + qDebug() << QString::fromLatin1(" :/%1").arg(i); dir = QDir(QLatin1String(":/metadata/")); foreach (const QString &i, dir.entryList()) - verbose() << QString::fromLatin1(" :/metadata/%1").arg(i) << std::endl; + qDebug() << QString::fromLatin1(" :/metadata/%1").arg(i); } QString controlScript; -- cgit v1.2.3