summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/componentmodel.cpp
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@digia.com>2014-06-25 14:30:09 +0200
committerLeena Miettinen <riitta-leena.miettinen@digia.com>2014-06-25 16:02:34 +0200
commit74a96de87ac7e9caf5c7951fa8fe493765111be7 (patch)
tree4a947abf6722b90c8ac7a6770031e436f80a3ce6 /src/libs/installer/componentmodel.cpp
parentcead45552aad940d60974f8cebf71e8b4e321ca0 (diff)
Doc: do not use the deprecated \bold command
In Qt 5, you should use \b, but in these cases, you should rather use \e, for emphasis, or \c, for code. Change-Id: I68fe20394a180279b107986f4dbf4bc1fa54ede9 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/libs/installer/componentmodel.cpp')
-rw-r--r--src/libs/installer/componentmodel.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/libs/installer/componentmodel.cpp b/src/libs/installer/componentmodel.cpp
index 14be1e259..17da07a04 100644
--- a/src/libs/installer/componentmodel.cpp
+++ b/src/libs/installer/componentmodel.cpp
@@ -155,10 +155,11 @@ QModelIndex ComponentModel::index(int row, int column, const QModelIndex &parent
/*!
Returns the data stored under the given \a role for the item referred to by the \a index.
- \note An \bold invalid QVariant is returned if the given index is invalid. \bold Qt::CheckStateRole is
- only supported for the first column of the model. \bold Qt::EditRole, \bold Qt::DisplayRole and \bold
- Qt::ToolTipRole are specifically handled for columns greater than the first column and translate to \bold
- Qt::UserRole \bold + \bold index.column().
+ \note An \e invalid QVariant is returned if the given index is invalid.
+ Qt::CheckStateRole is only supported for the first column of the model.
+ Qt::EditRole, Qt::DisplayRole and Qt::ToolTipRole are specifically handled
+ for columns greater than the first column and translate to
+ \c {Qt::UserRole + index.column()}.
*/
QVariant ComponentModel::data(const QModelIndex &index, int role) const
@@ -207,7 +208,8 @@ bool ComponentModel::setData(const QModelIndex &index, const QVariant &value, in
/*!
Returns the data for the given \a role and \a section in the header with the specified \a orientation.
- An \bold invalid QVariant is returned if \a section is out of bounds, \a orientation is not Qt::Horizontal
+ An \e invalid QVariant is returned if \a section is out of bounds,
+ \a orientation is not Qt::Horizontal
or \a role is anything else than Qt::DisplayRole.
*/
QVariant ComponentModel::headerData(int section, Qt::Orientation orientation, int role) const
@@ -222,7 +224,7 @@ QVariant ComponentModel::headerData(int section, Qt::Orientation orientation, in
\a value supplied. Returns true if the header's data was updated; otherwise returns false. The
headerDataChanged() signal is emitted if the data was successfully set.
- \note Only \bold Qt::Horizontal orientation is supported.
+ \note Only Qt::Horizontal orientation is supported.
*/
bool ComponentModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role)
{