OTHER: static open method for diriterators and fix typo
This commit is contained in:
parent
e4b23447dc
commit
7d978a25bc
5 changed files with 26 additions and 14 deletions
|
@ -15,7 +15,10 @@
|
|||
*/
|
||||
|
||||
#include "diriteratorbase.h"
|
||||
#include "diriterator.h"
|
||||
#include <QDataStream>
|
||||
#include "QFile"
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
@ -35,3 +38,14 @@ DirIteratorBase::pixmapEntry ()
|
|||
return p;
|
||||
}
|
||||
|
||||
DirIteratorBase *
|
||||
DirIteratorBase::open(const QString &path)
|
||||
{
|
||||
QDir dir(path);
|
||||
if (!dir.exists ()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return new DirIterator (dir);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue