diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-12-18 14:56:46 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-12-18 14:56:46 +0100 |
| commit | d19d94e60a778d4c19f646224e3b269da515c8fb (patch) | |
| tree | c634267e074b59bfce8e9f4c9ea90bb85c56089b /src/tests/testdir.h | |
| parent | 95220eebae1be024b84b069ce9ae4be35c9e6a5f (diff) | |
Ported tests away from KRandomSequence, QTest::kWaitForSignal and KTempDir.
All tests passed!
Diffstat (limited to 'src/tests/testdir.h')
| -rw-r--r-- | src/tests/testdir.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/testdir.h b/src/tests/testdir.h index 24c4d77b0..3f244448c 100644 --- a/src/tests/testdir.h +++ b/src/tests/testdir.h @@ -20,16 +20,15 @@ #ifndef TESTDIR_H #define TESTDIR_H -#include <KTempDir> #include <QUrl> - +#include <QTemporaryDir> #include <QDateTime> /** - * TestDir provides a temporary directory. In addition to KTempDir, it has + * TestDir provides a temporary directory. In addition to QTemporaryDir, it has * methods that create files and subdirectories inside the directory. */ -class TestDir : public KTempDir +class TestDir : public QTemporaryDir { public: @@ -50,6 +49,7 @@ public: void createDir(const QString& path, const QDateTime& time = QDateTime()); void removeFile(const QString& path); + void removeFiles(const QStringList& files); private: void makePathAbsoluteAndCreateParents(QString& path); |
