initial commit
This commit is contained in:
@@ -11,8 +11,12 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
|
||||||
|
static QTextStream textOut(stdout);
|
||||||
|
|
||||||
void readDirectory(const QString& szPath, QTextStream& out)
|
void readDirectory(const QString& szPath, QTextStream& out)
|
||||||
{
|
{
|
||||||
|
textOut << "*** DIRECTORY ***: " << szPath << "\n";
|
||||||
|
|
||||||
QMimeDatabase mimeDB;
|
QMimeDatabase mimeDB;
|
||||||
QDir dir(szPath);
|
QDir dir(szPath);
|
||||||
QStringList szDirs = dir.entryList(QDir::Dirs);
|
QStringList szDirs = dir.entryList(QDir::Dirs);
|
||||||
@@ -32,7 +36,7 @@ void readDirectory(const QString& szPath, QTextStream& out)
|
|||||||
|
|
||||||
if(mimeType.name().startsWith("image"))
|
if(mimeType.name().startsWith("image"))
|
||||||
{
|
{
|
||||||
qInfo() << fileInfo.fileName();
|
textOut << "--- File: " << fileInfo.fileName() << "\n";
|
||||||
|
|
||||||
cPicture picture;
|
cPicture picture;
|
||||||
if(picture.fromFile(fileInfo.filePath()))
|
if(picture.fromFile(fileInfo.filePath()))
|
||||||
|
|||||||
Reference in New Issue
Block a user