summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent.h
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2011-01-07 11:07:08 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2011-02-10 12:26:33 (GMT)
commitf29b95cef0441958050c86d3544cdfde32e9e62e (patch)
tree1020798e76164f3597b34cf590d3d5b3f06191ae /src/gui/kernel/qevent.h
parent977638104d091dd8780f4d1bee79bf014d6a2fe9 (diff)
downloadQt-f29b95cef0441958050c86d3544cdfde32e9e62e.zip
Qt-f29b95cef0441958050c86d3544cdfde32e9e62e.tar.gz
Qt-f29b95cef0441958050c86d3544cdfde32e9e62e.tar.bz2
Using QFile open by RFile and take ownership of handle
QFileOpenEvent's open method now opens the QFile with an RFile handle if possible. It takes a duplicate of the handle and transfers ownership to the QFile, so that the QFile can be used many times and outside of the lifetime of the QFileOpenEvent. Task-number: QTBUG-15015 Reviewed-by: Shane Kearns
Diffstat (limited to 'src/gui/kernel/qevent.h')
-rw-r--r--src/gui/kernel/qevent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index 88a7a8a..997ac0c 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -657,7 +657,7 @@ public:
inline QString file() const { return f; }
QUrl url() const;
- void openFile(QFile &file, QIODevice::OpenMode flags) const;
+ bool openFile(QFile &file, QIODevice::OpenMode flags) const;
private:
QString f;
};