diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-10-21 14:18:01 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-10-21 16:36:10 +0000 |
commit | a3abf9d76b3760b37f6e846c21570806974641f2 (patch) | |
tree | b204333f9edd47c749e6c5ad7e49ee24392921e9 /qtbase.pro | |
parent | 2a1d3f330d5f8cfc5358055b27e8e8301b3e050a (diff) |
Improve file handling in test of QSettings.
- Avoid duplication of slashes and use static variable for the
const part in settingsPath().
- Do not run expensive cleanup twice in init()/cleanup() as was
before by moving the code into a separate cleanupTestData()
function called from cleanup() and initTestCase().
- Use QDir::removeRecursively() (which should be able to deal
with readonly files, etc after 26bcc0565f49c731a4f288f93f04056ca20136a5 )
instead of system calls or the special removePath() function for
CE/RT.
- Switch QStandardPaths into test mode.
Change-Id: Idcde2d17020eae1ea43e448266e3940c06f174ef
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'qtbase.pro')
0 files changed, 0 insertions, 0 deletions