blob: e0ae63b0f43ff478ea1652fc607e998ef42d7b73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "dirlister.h"
#include <qdir.h>
PDirLister::PDirLister( const char* name )
: QObject( 0, name )
{}
PDirLister::~PDirLister()
{}
/**
* Change dir one level up. The default implementation
* is to use QDir to change the dir.
* If you've a flat filesystem return \par path immediately.
*/
QString PDirLister::dirUp( const QString& path )const {
QDir dir( path );
dir.cdUp();
return dir.absPath();
}
|