summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2012-05-11 01:47:46 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-29 11:35:21 +0200
commit358f78f215faf9dab433a279d87007f52fbe3c71 (patch)
tree1706d18b6b486bda98f3c6dcdd9217c5a81d8151 /src/gui/text
parent2c49ea852f7893faae59bbdb59e2806002f0a017 (diff)
QtGui: remove \link usages
Change-Id: Ib8cca14a8fa35fbc631bfea9b4873225eac3677f Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qfont.cpp25
-rw-r--r--src/gui/text/qfontmetrics.cpp12
-rw-r--r--src/gui/text/qtextdocument.cpp6
3 files changed, 20 insertions, 23 deletions
diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp
index 753fe5670f..961ac8e64c 100644
--- a/src/gui/text/qfont.cpp
+++ b/src/gui/text/qfont.cpp
@@ -382,7 +382,7 @@ QFontEngineData::~QFontEngineData()
QFontInfo object.
If the requested font family is unavailable you can influence the
- \link #fontmatching font matching algorithm\endlink by choosing a
+ \l{#fontmatching}{font matching algorithm} by choosing a
particular \l{QFont::StyleHint} and \l{QFont::StyleStrategy} with
setStyleHint(). The default family (corresponding to the current
style hint) is returned by defaultFamily().
@@ -484,9 +484,9 @@ QFontEngineData::~QFontEngineData()
\snippet code/src_gui_text_qfont.cpp 4
For more general information on fonts, see the
- \link http://nwalsh.com/comp.fonts/FAQ/ comp.fonts FAQ.\endlink
+ \l{comp.fonts FAQ}{comp.fonts FAQ}.
Information on encodings can be found from
- \link http://czyborra.com/ Roman Czyborra's\endlink page.
+ \l{Roman Czyborra's} page.
\sa QFontComboBox, QFontMetrics, QFontInfo, QFontDatabase, {Character Map Example}
*/
@@ -626,7 +626,7 @@ QFontEngineData::~QFontEngineData()
It is theoretically possible that there really isn't a
lastResortFont() in which case Qt will abort with an error
message. We have not been able to identify a case where this
- happens. Please \link bughowto.html report it as a bug\endlink if
+ happens. Please \l{bughowto.html}{report it as a bug} if
it does, preferably with a list of the fonts you have installed.
\sa lastResortFamily(), rawName()
@@ -1106,8 +1106,8 @@ void QFont::setWeight(int weight)
/*!
\fn bool QFont::bold() const
- Returns true if weight() is a value greater than \link Weight
- QFont::Normal \endlink; otherwise returns false.
+ Returns true if weight() is a value greater than
+ \l{Weight}{QFont::Normal}; otherwise returns false.
\sa weight(), setBold(), QFontInfo::bold()
*/
@@ -1115,9 +1115,9 @@ void QFont::setWeight(int weight)
/*!
\fn void QFont::setBold(bool enable)
- If \a enable is true sets the font's weight to \link Weight
- QFont::Bold \endlink; otherwise sets the weight to \link Weight
- QFont::Normal\endlink.
+ If \a enable is true sets the font's weight to
+ \l{Weight}{QFont::Bold};
+ otherwise sets the weight to \l{Weight}{QFont::Normal}.
For finer boldness control use setWeight().
@@ -2097,7 +2097,7 @@ void QFont::cacheStatistics()
Writes the font \a font to the data stream \a s. (toString()
writes to a text stream.)
- \sa \link datastreamformat.html Format of the QDataStream operators \endlink
+ \sa{Serializing Qt Data Types}{Format of the QDataStream operators}
*/
QDataStream &operator<<(QDataStream &s, const QFont &font)
{
@@ -2148,7 +2148,7 @@ QDataStream &operator<<(QDataStream &s, const QFont &font)
Reads the font \a font from the data stream \a s. (fromString()
reads from a text stream.)
- \sa \link datastreamformat.html Format of the QDataStream operators \endlink
+ \sa{Serializing Qt Data Types}{Format of the QDataStream operators}
*/
QDataStream &operator>>(QDataStream &s, QFont &font)
{
@@ -2273,8 +2273,7 @@ QDataStream &operator>>(QDataStream &s, QFont &font)
Constructs a font info object for \a font.
The font must be screen-compatible, i.e. a font you use when
- drawing text in \link QWidget widgets\endlink or \link QPixmap
- pixmaps\endlink, not QPicture or QPrinter.
+ drawing text in \l{QWidget}{widgets} or \l{QPixmap}{pixmaps}, not QPicture or QPrinter.
The font info object holds the information for the font that is
passed in the constructor at the time it is created, and is not
diff --git a/src/gui/text/qfontmetrics.cpp b/src/gui/text/qfontmetrics.cpp
index 141ef64e53..83d51e2e71 100644
--- a/src/gui/text/qfontmetrics.cpp
+++ b/src/gui/text/qfontmetrics.cpp
@@ -166,7 +166,7 @@ QFontMetrics::QFontMetrics(const QFont &font)
The font metrics will be compatible with the paintdevice passed.
If the \a paintdevice is 0, the metrics will be screen-compatible,
ie. the metrics you get if you use the font for drawing text on a
- \link QWidget widgets\endlink or \link QPixmap pixmaps\endlink,
+ \l{QWidget}{widgets} or \l{QPixmap}{pixmaps},
not on a QPicture or QPrinter.
The font metrics object holds the information for the font that is
@@ -751,8 +751,8 @@ QRect QFontMetrics::boundingRect(QChar ch) const
The bounding rectangle returned by this function is somewhat larger
than that calculated by the simpler boundingRect() function. This
- function uses the \link minLeftBearing() maximum left \endlink and
- \link minRightBearing() right \endlink font bearings as is
+ function uses the \l{minLeftBearing()}{maximum left} and
+ \l{minRightBearing()}{right} font bearings as is
necessary for multi-line text to align correctly. Also,
fontHeight() and lineSpacing() are used to calculate the height,
rather than individual character heights.
@@ -1027,7 +1027,7 @@ QFontMetricsF::QFontMetricsF(const QFont &font)
The font metrics will be compatible with the paintdevice passed.
If the \a paintdevice is 0, the metrics will be screen-compatible,
ie. the metrics you get if you use the font for drawing text on a
- \link QWidget widgets\endlink or \link QPixmap pixmaps\endlink,
+ \l{QWidget}{widgets} or \l{QPixmap}{pixmaps},
not on a QPicture or QPrinter.
The font metrics object holds the information for the font that is
@@ -1532,8 +1532,8 @@ QRectF QFontMetricsF::boundingRect(QChar ch) const
The bounding rectangle returned by this function is somewhat larger
than that calculated by the simpler boundingRect() function. This
- function uses the \link minLeftBearing() maximum left \endlink and
- \link minRightBearing() right \endlink font bearings as is
+ function uses the \l{minLeftBearing()}{maximum left} and
+ \l{minRightBearing()}{right} font bearings as is
necessary for multi-line text to align correctly. Also,
fontHeight() and lineSpacing() are used to calculate the height,
rather than individual character heights.
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp
index d0a15859ee..0c5194e9c6 100644
--- a/src/gui/text/qtextdocument.cpp
+++ b/src/gui/text/qtextdocument.cpp
@@ -400,8 +400,7 @@ void QTextDocument::undo(QTextCursor *cursor)
/*!
\since 4.2
- Redoes the last editing operation on the document if \link
- QTextDocument::isRedoAvailable() redo is available\endlink.
+ Redoes the last editing operation on the document if \l{QTextDocument::isRedoAvailable()}{redo is available}.
The provided \a cursor is positioned at the end of the location where
the edition operation was redone.
@@ -452,8 +451,7 @@ void QTextDocument::undo()
/*!
\overload
- Redoes the last editing operation on the document if \link
- QTextDocument::isRedoAvailable() redo is available\endlink.
+ Redoes the last editing operation on the document if \l{QTextDocument::isRedoAvailable()}{redo is available}.
*/
void QTextDocument::redo()
{