path: root/src/corelib/mimetypes
diff options
authorDavid Faure <>2012-11-19 14:10:33 +0100
committerThe Qt Project <>2012-11-19 17:12:58 +0100
commitb256c47d625c519a88fe9dd96611015445776434 (patch)
tree3fe6b361694d1400cd99f48cdb01acfa98d4087c /src/corelib/mimetypes
parent433e7cef1e05181e717419d0eda3af777106dadf (diff)
Document what the QMimeDatabase constructor really does.
Change-Id: I8d4dcc92296163dea7b78fbb0ceefaee08e57a94 Reviewed-by: Simon Hausmann <> Reviewed-by: Allan Sandfeld Jensen <>
Diffstat (limited to 'src/corelib/mimetypes')
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corelib/mimetypes/qmimedatabase.cpp b/src/corelib/mimetypes/qmimedatabase.cpp
index c141eb9eb4..5acc290475 100644
--- a/src/corelib/mimetypes/qmimedatabase.cpp
+++ b/src/corelib/mimetypes/qmimedatabase.cpp
@@ -289,7 +289,12 @@ bool QMimeDatabasePrivate::inherits(const QString &mime, const QString &parent)
\fn QMimeDatabase::QMimeDatabase();
- Constructs this QMimeDatabase object.
+ Constructs a QMimeDatabase object.
+ It is perfectly OK to create an instance of QMimeDatabase every time you need to
+ perform a lookup.
+ The parsing of mimetypes is done on demand (when shared-mime-info is installed)
+ or when the very first instance is constructed (when parsing XML files directly).
QMimeDatabase::QMimeDatabase() :