Document what the QMimeDatabase constructor really does.
authorDavid Faure <faure@kde.org>
Mon, 19 Nov 2012 13:10:33 +0000 (14:10 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 19 Nov 2012 16:12:58 +0000 (17:12 +0100)
Change-Id: I8d4dcc92296163dea7b78fbb0ceefaee08e57a94
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Allan Sandfeld Jensen <kde@carewolf.com>
src/corelib/mimetypes/qmimedatabase.cpp

index c141eb9..5acc290 100644 (file)
@@ -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() :
         d(staticQMimeDatabase())