Document what the QMimeDatabase constructor really does.

Change-Id: I8d4dcc92296163dea7b78fbb0ceefaee08e57a94
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Allan Sandfeld Jensen <kde@carewolf.com>
This commit is contained in:
David Faure 2012-11-19 14:10:33 +01:00 committed by The Qt Project
parent 433e7cef1e
commit b256c47d62

View 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())