From 94ea9d475c37024309af37e270601ee6523f80d9 Mon Sep 17 00:00:00 2001 From: birkeh Date: Sun, 24 Feb 2019 22:03:41 +0100 Subject: [PATCH] initial commit --- main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index bf66933..5878ffb 100644 --- a/main.cpp +++ b/main.cpp @@ -11,8 +11,12 @@ #include +static QTextStream textOut(stdout); + void readDirectory(const QString& szPath, QTextStream& out) { + textOut << "*** DIRECTORY ***: " << szPath << "\n"; + QMimeDatabase mimeDB; QDir dir(szPath); QStringList szDirs = dir.entryList(QDir::Dirs); @@ -32,7 +36,7 @@ void readDirectory(const QString& szPath, QTextStream& out) if(mimeType.name().startsWith("image")) { - qInfo() << fileInfo.fileName(); + textOut << "--- File: " << fileInfo.fileName() << "\n"; cPicture picture; if(picture.fromFile(fileInfo.filePath()))