Doc: correct autolink issues corelib/mimetype
Task-number: QTBUG-40362 Change-Id: I852151fdbbe0cbc7ba88066984fc7bf83547b215 Reviewed-by: Martin Smith <martin.smith@digia.com>bb10
parent
efeb15f306
commit
19a920c460
|
|
@ -248,7 +248,7 @@ bool QMimeDatabasePrivate::inherits(const QString &mime, const QString &parent)
|
|||
\endcode
|
||||
On a typical Unix system, this will be /usr/share/mime/packages/, but it is also
|
||||
possible to extend the list of directories by setting the environment variable
|
||||
XDG_DATA_DIRS. For instance adding /opt/myapp/share to XDG_DATA_DIRS will result
|
||||
\c XDG_DATA_DIRS. For instance adding /opt/myapp/share to \c XDG_DATA_DIRS will result
|
||||
in /opt/myapp/share/mime/packages/ being searched for MIME definitions.
|
||||
|
||||
Here is an example of MIME XML:
|
||||
|
|
@ -575,7 +575,7 @@ QMimeType QMimeDatabase::mimeTypeForFileNameAndData(const QString &fileName, con
|
|||
|
||||
This can be useful for showing all MIME types to the user, for instance
|
||||
in a MIME type editor. Do not use unless really necessary in other cases
|
||||
though, prefer using the mimeTypeFor* methods for performance reasons.
|
||||
though, prefer using the \l {mimeTypeForData()}{mimeTypeForXxx()} methods for performance reasons.
|
||||
*/
|
||||
QList<QMimeType> QMimeDatabase::allMimeTypes() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -89,8 +89,8 @@ void QMimeTypePrivate::addGlobPattern(const QString &pattern)
|
|||
|
||||
Determining the MIME type of a file can be useful to make sure your
|
||||
application supports it. It is also useful in file-manager-like applications
|
||||
or widgets, in order to display an appropriate icon() for the file, or even
|
||||
the descriptive comment() in detailed views.
|
||||
or widgets, in order to display an appropriate \l {QMimeType::iconName}{icon} for the file, or even
|
||||
the descriptive \l {QMimeType::comment()}{comment} in detailed views.
|
||||
|
||||
To check if a file has the expected MIME type, you should use inherits()
|
||||
rather than a simple string comparison based on the name(). This is because
|
||||
|
|
|
|||
|
|
@ -725,7 +725,7 @@ static inline char qToLower(char c)
|
|||
occurrences of a particular value with another, use one of the
|
||||
two-parameter replace() overloads.
|
||||
|
||||
QByteArrays can be compared using overloaded operators such as
|
||||
{QByteArray}s can be compared using overloaded operators such as
|
||||
operator<(), operator<=(), operator==(), operator>=(), and so on.
|
||||
The comparison is based exclusively on the numeric values
|
||||
of the characters and is very fast, but is not what a human would
|
||||
|
|
@ -770,7 +770,7 @@ static inline char qToLower(char c)
|
|||
lastIndexOf(), operator<(), operator<=(), operator>(),
|
||||
operator>=(), toLower() and toUpper().
|
||||
|
||||
This issue does not apply to QStrings since they represent
|
||||
This issue does not apply to {QString}s since they represent
|
||||
characters using Unicode.
|
||||
|
||||
\sa QString, QBitArray
|
||||
|
|
@ -3105,6 +3105,7 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba)
|
|||
replaced with a single space.
|
||||
|
||||
Whitespace means any character for which the standard C++
|
||||
\c isspace() function returns \c true in the C locale. This includes the ASCII
|
||||
isspace() function returns \c true in the C locale. This includes the ASCII
|
||||
characters '\\t', '\\n', '\\v', '\\f', '\\r', and ' '.
|
||||
|
||||
|
|
@ -3143,13 +3144,13 @@ QByteArray QByteArray::simplified() const
|
|||
and the end.
|
||||
|
||||
Whitespace means any character for which the standard C++
|
||||
isspace() function returns \c true in the C locale. This includes the ASCII
|
||||
\c isspace() function returns \c true in the C locale. This includes the ASCII
|
||||
characters '\\t', '\\n', '\\v', '\\f', '\\r', and ' '.
|
||||
|
||||
Example:
|
||||
\snippet code/src_corelib_tools_qbytearray.cpp 33
|
||||
|
||||
Unlike simplified(), trimmed() leaves internal whitespace alone.
|
||||
Unlike simplified(), \l {QByteArray::trimmed()}{trimmed()} leaves internal whitespace alone.
|
||||
|
||||
\sa simplified()
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue