diff options
author | mread <qt-info@nokia.com> | 2010-11-09 13:02:56 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2011-02-10 12:26:29 (GMT) |
commit | 6b452ea0757414965fa00bfb7285f7d687c9c8d0 (patch) | |
tree | 9c778721aa1b80e77d2435b8da81bf945913cbd4 /src/gui | |
parent | 5f5e67e39bfc073d65857f6edae1df0db8507edd (diff) | |
download | Qt-6b452ea0757414965fa00bfb7285f7d687c9c8d0.zip Qt-6b452ea0757414965fa00bfb7285f7d687c9c8d0.tar.gz Qt-6b452ea0757414965fa00bfb7285f7d687c9c8d0.tar.bz2 |
documentation for QFileOpenEvent::openFile
Task-number: QTBUG-15015
Reviewed-by: Shane Kearns
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qevent.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 8a67b91..8f2e6cb 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -3098,6 +3098,17 @@ QUrl QFileOpenEvent::url() const return reinterpret_cast<const QFileOpenEventPrivate *>(d)->url; } +/*! + \fn void openFile(QFile &file, QIODevice::OpenMode flags) const + + Opens a QFile on the file referenced by this event. + This is necessary as some files cannot be opened with the filename alone, but require specific + information stored in this event. + For example, if this QFileOpenEvent contains a request to open a Symbian data caged file, + this function must be used to open a QFile on it. + + \since 4.8 +*/ void QFileOpenEvent::openFile(QFile &file, QIODevice::OpenMode flags) const { file.setFileName(f); |