summaryrefslogtreecommitdiffstats
path: root/tests/auto/models
diff options
context:
space:
mode:
authorAnselmo L. S. Melo <[email protected]>2014-03-29 18:31:57 -0300
committerAnselmo L. S. Melo <[email protected]>2014-05-09 13:04:53 +0200
commit5a530b2b9e514a83b9e5f2a66f06b37d35cac3f2 (patch)
tree7d782a5a1e5e1b1afe2cf16fa4c546c6af6eedd2 /tests/auto/models
parent67d58739f5e2fbefd45ff911da244aa4c910529d (diff)
API updatesHEADmaster
This project was developed before the release of Qt 5.0, so some of the APIs had to be updated in order to build again. Change-Id: I579d7170ea0d80bd33aee29ec807461af603b0d3 Reviewed-by: Anselmo L. S. Melo <[email protected]>
Diffstat (limited to 'tests/auto/models')
-rw-r--r--tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp2
-rw-r--r--tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp b/tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp
index 5fbf009..ee72e2e 100644
--- a/tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp
+++ b/tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp
@@ -141,7 +141,7 @@ tst_UiFileSystemModel::~tst_UiFileSystemModel()
QString tmp = flatDirTestPath;
QDir dir(tmp);
if (dir.exists() && !dir.rmdir(tmp))
- qWarning("failed to remove tmp dir %s", dir.dirName().toAscii().data());
+ qWarning("failed to remove tmp dir %s", dir.dirName().toLatin1().data());
}
void tst_UiFileSystemModel::init()
diff --git a/tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp b/tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp
index 446782d..6bb7b6a 100644
--- a/tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp
+++ b/tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp
@@ -80,7 +80,7 @@ void tst_UiTextFileModel::init()
text.append(", ");
}
}
- file.write(text.toAscii());
+ file.write(text.toLatin1());
file.flush();
file.close();
}