X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/26648a0264ad726682901b2f9c9b5bd92dedb782..e256daa5693ba271a62959372f3e89cc93da9487:/src/tests/testdir.cpp diff --git a/src/tests/testdir.cpp b/src/tests/testdir.cpp index a7f3cd4dc..dcc4c87a5 100644 --- a/src/tests/testdir.cpp +++ b/src/tests/testdir.cpp @@ -27,7 +27,8 @@ #include #endif -TestDir::TestDir() +TestDir::TestDir(const QString& directoryPrefix) : + KTempDir(directoryPrefix) { } @@ -35,9 +36,9 @@ TestDir::~TestDir() { } -KUrl TestDir::url() const +QUrl TestDir::url() const { - return KUrl(name()); + return QUrl::fromLocalFile(name()); } /** The following function is taken from kdelibs/kio/tests/kiotesthelper.h, copyright (C) 2006 by David Faure */