diff options
| author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-11-24 08:40:32 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-11-24 15:30:04 +0000 |
| commit | 1e8863e39dfc72422e76dae214d35268685eb52a (patch) | |
| tree | d01dda8b115e3317d02e8947cf96c5cc23e71d35 /src/gui/doc/snippets/qfileopenevent/main.cpp | |
| parent | 09b64aa9d338e6e1926bcf45494272565f5fa6bc (diff) | |
tst_QImageReader: Fix file handling.
Use a QTemporaryFile in readFromFileAfterJunk() instead writing
to the current directory which might not have write permission.
Enclose each call to QFile::open() in QVERIFY2() with error message.
Change-Id: I3c5da31c6681a2396cee473cafe7d92c5c220de3
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Diffstat (limited to 'src/gui/doc/snippets/qfileopenevent/main.cpp')
0 files changed, 0 insertions, 0 deletions
