]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/testdir.cpp
Fix style-issues in items when not using Oxygen
[dolphin.git] / src / tests / testdir.cpp
index 5e961d2abecd1858c9b362b5750eb9b7fd24392d..a7f3cd4dc4186d6ee63e69d512d342c355e54656 100644 (file)
@@ -93,6 +93,16 @@ void TestDir::createDir(const QString& path, const QDateTime& time)
     Q_ASSERT(QFile::exists(absolutePath));
 }
 
+void TestDir::removeFile(const QString& path)
+{
+    QString absolutePath = path;
+    QFileInfo fileInfo(absolutePath);
+    if (!fileInfo.isAbsolute()) {
+        absolutePath = name() + path;
+    }
+    QFile::remove(absolutePath);
+}
+
 void TestDir::makePathAbsoluteAndCreateParents(QString& path)
 {
     QFileInfo fileInfo(path);