┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/testdir.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-07-30 20:13:09 +0200
committerPeter Penz <[email protected]>2011-07-30 20:13:41 +0200
commitf23e9496f303995557b744c03178f5dbd9b35016 (patch)
tree1139c4340ac173718d1fa847e0124d6175781fd9 /src/tests/testdir.h
parent69e4007e5e330f2ca87c0176a186967b5ca156e8 (diff)
Merged very early alpha-version of Dolphin 2.0
Dolphin 2.0 will get a new view-engine with the following improvements: - Better performance - Animated transitions - No clipped filenames due to dynamic item-sizes - Grouping support for all view-modes - Non-rectangular selection areas - Simplified code for better maintenance More details will be provided in a blog-entry during the next days. Please note that the code is in a very early alpha-stage and although the most tricky parts have been implemented already very basic things like drag and drop or selections have not been pushed yet. Those things are rather trivial to implement but this still will take some time.
Diffstat (limited to 'src/tests/testdir.h')
-rw-r--r--src/tests/testdir.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/tests/testdir.h b/src/tests/testdir.h
index bff462690..bcaa034b5 100644
--- a/src/tests/testdir.h
+++ b/src/tests/testdir.h
@@ -29,29 +29,27 @@
* TestDir provides a temporary directory. In addition to KTempDir, it has
* methods that create files and subdirectories inside the directory.
*/
-
class TestDir : public KTempDir
{
public:
+ TestDir();
+ virtual ~TestDir();
- TestDir() {}
- ~TestDir() {}
-
- KUrl url() const { return KUrl(name()); }
+ KUrl url() const;
/**
* The following functions create either a file, a list of files, or a directory.
* The paths may be absolute or relative to the test directory. Any missing parent
* directories will be created automatically.
*/
-
- void createFile(const QString& path, const QByteArray& data = QByteArray("test"), const QDateTime& time = QDateTime());
+ void createFile(const QString& path,
+ const QByteArray& data = QByteArray("test"),
+ const QDateTime& time = QDateTime());
void createFiles(const QStringList& files);
void createDir(const QString& path, const QDateTime& time = QDateTime());
private:
-
void makePathAbsoluteAndCreateParents(QString& path);
};