change \img to \image in docs
authorJeremy Katz <jeremy.katz@nokia.com>
Wed, 1 Aug 2012 12:44:51 +0000 (14:44 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Aug 2012 13:37:46 +0000 (15:37 +0200)
\img was a macro defined in macros.qdocconf. This collection
of macros is being phased out. Use the full command instead.

Change-Id: Ia55212f87bb46349d61359d40568e0aa33882596
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
31 files changed:
doc/src/examples/analogclock.qdoc
doc/src/examples/factorial.qdoc
doc/src/examples/pingpong.qdoc
doc/src/examples/trafficlight.qdoc
src/concurrent/qfuture.cpp
src/dbus/doc/src/dbus-intro.qdoc
src/gui/image/qicon.cpp
src/gui/kernel/qevent.cpp
src/gui/kernel/qpalette.cpp
src/gui/painting/qcolor.cpp
src/gui/painting/qregion.cpp
src/gui/text/qfontmetrics.cpp
src/gui/text/qtextformat.cpp
src/gui/text/qtextobject.cpp
src/widgets/dialogs/qerrormessage.cpp
src/widgets/dialogs/qinputdialog.cpp
src/widgets/dialogs/qmessagebox.cpp
src/widgets/doc/src/widgets-and-layouts/layout.qdoc
src/widgets/doc/src/windows-and-dialogs/mainwindow.qdoc
src/widgets/effects/qgraphicseffect.cpp
src/widgets/graphicsview/qgraphicsitem.cpp
src/widgets/graphicsview/qgraphicsview.cpp
src/widgets/kernel/qactiongroup.cpp
src/widgets/kernel/qwhatsthis.cpp
src/widgets/styles/qcdestyle.cpp
src/widgets/styles/qmacstyle.qdoc
src/widgets/styles/qmotifstyle.cpp
src/widgets/styles/qplastiquestyle.cpp
src/widgets/styles/qstyle.cpp
src/widgets/styles/qwindowsstyle.cpp
src/widgets/styles/qwindowsxpstyle.cpp

index 265ca76..4385da0 100644 (file)
     the painter handle transformations is often easier than performing
     manual calculations just to draw the contents of a custom widget.
 
-    \img analogclock-viewport.png
+    \image analogclock-viewport.png
 
     We draw the hour hand first, using a formula that rotates the coordinate
     system counterclockwise by a number of degrees determined by the current
index 3852a1e..ead9695 100644 (file)
@@ -34,7 +34,7 @@
 
     The statechart for calculating the factorial looks as follows:
 
-    \img factorial-example.png
+    \image factorial-example.png
     \omit
     \caption This is a caption
     \endomit
index eef6a64..8735868 100644 (file)
@@ -35,7 +35,7 @@
     This example implements a statechart where two states communicate by
     posting events to the state machine. The state chart looks as follows:
 
-    \img pingpong-example.png
+    \image pingpong-example.png
     \omit
     \caption This is a caption
     \endomit
index df0ffde..f80225f 100644 (file)
@@ -59,7 +59,7 @@
     timer, and as we shall see the timeout is used to transition from one
     LightState to another. Here is the statechart for the light state:
 
-    \img trafficlight-example1.png
+    \image trafficlight-example1.png
     \omit
     \caption This is a caption
     \endomit
@@ -73,7 +73,7 @@
     yellow-to-green. The same process repeats through the other states.
     This is what the statechart looks like:
 
-    \img trafficlight-example2.png
+    \image trafficlight-example2.png
     \omit
     \caption This is a caption
     \endomit
index 79226c5..90b54ca 100644 (file)
     between the second and third result, and returns the second result; and
     so on.
 
-    \img javaiterators1.png
+    \image javaiterators1.png
 
     Here's how to iterate over the elements in reverse order:
 
index b3cf29e..6304c8f 100644 (file)
     If we continue our analogy with Web services, object paths
     equate to the path part of a URL:
 
-    \img qurl-ftppath.png
+    \image qurl-ftppath.png
 
     Like them, object paths in D-Bus are formed resembling path
     names on the filesystem: they are slash-separated labels, each
index 3916672..9a2db6b 100644 (file)
@@ -507,7 +507,7 @@ Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
   selected item. If the widget can be toggled, the "On" mode might be
   used to draw a different icon.
 
-  \img icon.png QIcon
+  \image icon.png QIcon
 
   \sa {fowler}{GUI Design Handbook: Iconic Label}, {Icons Example}
 */
index a0ea261..5abe8a3 100644 (file)
@@ -1977,7 +1977,7 @@ QTabletEvent::~QTabletEvent()
     Positive values are towards the tablet's physical right. The angle
     is in the range -60 to +60 degrees.
 
-    \img qtabletevent-tilt.png
+    \image qtabletevent-tilt.png
 
     \sa yTilt()
 */
index 7d0bc8c..2ff37a2 100644 (file)
@@ -404,7 +404,7 @@ static void qt_palette_from_color(QPalette &pal, const QColor &button)
 /*!
     \enum QPalette::ColorRole
 
-    \img palette.png Color Roles
+    \image palette.png Color Roles
 
     The ColorRole enum defines the different symbolic color roles used
     in current GUIs.
index 61a218d..f496769 100644 (file)
@@ -153,7 +153,7 @@ QT_BEGIN_NAMESPACE
 
     The code above produces the following output:
 
-    \img alphafill.png
+    \image alphafill.png
 
     The alpha channel of a color can be retrieved and set using the
     alpha() and setAlpha() functions if its value is an integer, and
@@ -170,7 +170,7 @@ QT_BEGIN_NAMESPACE
     variety of color names; the static colorNames() function returns a
     QStringList color names that QColor knows about.
 
-    \img qt-colors.png Qt Colors
+    \image qt-colors.png Qt Colors
 
     Additionally, the Qt::color0, Qt::color1 and Qt::transparent colors
     are used for special purposes.
index cea9f74..5d3eb60 100644 (file)
@@ -775,7 +775,7 @@ QRegion QRegion::intersect(const QRect &r) const
 
     Returns a region which is the union of this region and \a r.
 
-    \img runion.png Region Union
+    \image runion.png Region Union
 
     The figure shows the union of two elliptical regions.
 
@@ -812,7 +812,7 @@ QRegion QRegion::intersect(const QRect &r) const
 
     Returns a region which is the intersection of this region and \a r.
 
-    \img rintersect.png Region Intersection
+    \image rintersect.png Region Intersection
 
     The figure shows the intersection of two elliptical regions.
 
@@ -832,7 +832,7 @@ QRegion QRegion::intersect(const QRect &r) const
 
     Returns a region which is \a r subtracted from this region.
 
-    \img rsubtract.png Region Subtraction
+    \image rsubtract.png Region Subtraction
 
     The figure shows the result when the ellipse on the right is
     subtracted from the ellipse on the left (\c {left - right}).
@@ -854,7 +854,7 @@ QRegion QRegion::intersect(const QRect &r) const
     Returns a region which is the exclusive or (XOR) of this region
     and \a r.
 
-    \img rxor.png Region XORed
+    \image rxor.png Region XORed
 
     The figure shows the exclusive or of two elliptical regions.
 
index d135b2a..488bb68 100644 (file)
@@ -551,7 +551,7 @@ int QFontMetrics::width(const QString &text, int len, int flags) const
 /*!
     \overload
 
-    \img bearings.png Bearings
+    \image bearings.png Bearings
 
     Returns the logical width of character \a ch in pixels. This is a
     distance appropriate for drawing a subsequent character after \a
@@ -1391,7 +1391,7 @@ qreal QFontMetricsF::width(const QString &text) const
 /*!
     \overload
 
-    \img bearings.png Bearings
+    \image bearings.png Bearings
 
     Returns the logical width of character \a ch in pixels. This is a
     distance appropriate for drawing a subsequent character after \a
index 4dd7b28..cb1e81b 100644 (file)
@@ -2446,7 +2446,7 @@ QTextListFormat::QTextListFormat(const QTextFormat &fmt)
     frame's padding(). This scheme is similar to the box model used by Cascading
     Style Sheets for HTML pages.
 
-    \img qtextframe-style.png
+    \image qtextframe-style.png
 
     The position() of a frame is set using setPosition() and determines how it
     is located relative to the surrounding text.
index 5643233..a7cd76c 100644 (file)
@@ -868,7 +868,7 @@ QTextBlockUserData::~QTextBlockUserData()
     compares two blocks for inequality, and \l operator<() determines whether
     a block precedes another in the same document.
 
-    \img qtextblock-sequence.png
+    \image qtextblock-sequence.png
 
     \sa QTextBlockFormat, QTextCharFormat, QTextFragment
  */
@@ -1602,7 +1602,7 @@ QTextBlock::iterator &QTextBlock::iterator::operator--()
     of the sentence, the second will contain the text from the middle, and the
     third takes the text from the end of the sentence.
 
-    \img qtextfragment-split.png
+    \image qtextfragment-split.png
 
     A fragment's text and character format can be obtained with the text()
     and charFormat() functions. The length() function gives the length of
index 094c35b..47f79e1 100644 (file)
@@ -167,7 +167,7 @@ QSize QErrorMessageTextView::sizeHint() const
     The \l{dialogs/standarddialogs}{Standard Dialogs} example shows
     how to use QErrorMessage as well as other built-in Qt dialogs.
 
-    \img qerrormessage.png
+    \image qerrormessage.png
 
     \sa QMessageBox, QStatusBar::showMessage(), {Standard Dialogs Example}
 */
index 13be3fc..8287635 100644 (file)
@@ -447,7 +447,7 @@ void QInputDialogPrivate::_q_currentRowChanged(const QModelIndex &newIndex,
     The \c ok variable is set to true if the user clicks \uicontrol OK; otherwise it
     is set to false.
 
-    \img inputdialogs.png Input Dialogs
+    \image inputdialogs.png Input Dialogs
 
     The \l{dialogs/standarddialogs}{Standard Dialogs} example shows how to use
     QInputDialog as well as other built-in Qt dialogs.
index ba70d4d..e43b464 100644 (file)
@@ -575,19 +575,19 @@ void QMessageBoxPrivate::_q_buttonClicked(QAbstractButton *button)
 
     \table
     \row
-    \li \img qmessagebox-quest.png
+    \li \image qmessagebox-quest.png
     \li \l Question
     \li For asking a question during normal operations.
     \row
-    \li \img qmessagebox-info.png
+    \li \image qmessagebox-info.png
     \li \l Information
     \li For reporting information about normal operations.
     \row
-    \li \img qmessagebox-warn.png
+    \li \image qmessagebox-warn.png
     \li \l Warning
     \li For reporting non-critical errors.
     \row
-    \li \img qmessagebox-crit.png
+    \li \image qmessagebox-crit.png
     \li \l Critical
     \li For reporting critical errors.
     \endtable
index cc3c438..7389a2d 100644 (file)
     If we have three widgets laid out using a QHBoxLayout with no stretch
     factors set we will get a layout like this:
 
-    \img layout1.png Three widgets in a row
+    \image layout1.png Three widgets in a row
 
     If we apply stretch factors to each widget, they will be laid out in
     proportion (but never less than their minimum size hint), e.g.
 
-    \img layout2.png Three widgets with different stretch factors in a row
+    \image layout2.png Three widgets with different stretch factors in a row
 
 
     \section1 Custom Widgets in Layouts
index 99acb2e..8e9ea93 100644 (file)
     widget's client geometry.
 
     This diagram shows most of the functions in use:
-    \img geometry.png Geometry diagram
+    \image geometry.png Geometry diagram
 
     \section2 X11 Peculiarities
 
index 5bfa8cc..7377e02 100644 (file)
 
     \table
     \row
-    \li{2,1} \img graphicseffect-plain.png
+    \li{2,1} \image graphicseffect-plain.png
     \row
-    \li \img graphicseffect-blur.png
-    \li \img graphicseffect-colorize.png
+    \li \image graphicseffect-blur.png
+    \li \image graphicseffect-colorize.png
     \row
-    \li \img graphicseffect-opacity.png
-    \li \img graphicseffect-drop-shadow.png
+    \li \image graphicseffect-opacity.png
+    \li \image graphicseffect-drop-shadow.png
     \endtable
 
-    \img graphicseffect-widget.png
+    \image graphicseffect-widget.png
 
     For more information on how to use each effect, refer to the specific
     effect's documentation.
@@ -600,7 +600,7 @@ void QGraphicsEffect::sourceChanged(ChangeFlags flags)
 
     By default, the color is light blue (QColor(0, 0, 192)).
 
-    \img graphicseffect-colorize.png
+    \image graphicseffect-colorize.png
 
     \sa QGraphicsDropShadowEffect, QGraphicsBlurEffect, QGraphicsOpacityEffect
 */
@@ -729,7 +729,7 @@ void QGraphicsColorizeEffect::draw(QPainter *painter)
     By default, the blur radius is 5 pixels. The blur radius is specified in
     device coordinates.
 
-    \img graphicseffect-blur.png
+    \image graphicseffect-blur.png
 
     \sa QGraphicsDropShadowEffect, QGraphicsColorizeEffect, QGraphicsOpacityEffect
 */
@@ -892,7 +892,7 @@ void QGraphicsBlurEffect::draw(QPainter *painter)
     of 8 pixels towards the lower right. The drop shadow offset is specified
     in device coordinates.
 
-    \img graphicseffect-drop-shadow.png
+    \image graphicseffect-drop-shadow.png
 
     \sa QGraphicsBlurEffect, QGraphicsColorizeEffect, QGraphicsOpacityEffect
 */
@@ -1084,7 +1084,7 @@ void QGraphicsDropShadowEffect::draw(QPainter *painter)
 
     By default, the opacity is 0.7.
 
-    \img graphicseffect-opacity.png
+    \image graphicseffect-opacity.png
 
     \sa QGraphicsDropShadowEffect, QGraphicsBlurEffect, QGraphicsColorizeEffect
 */
index 35519de..9a01480 100644 (file)
     local coordinates). Parent items propagate both their position and their
     transformation to all children.
 
-    \img graphicsview-parentchild.png
+    \image graphicsview-parentchild.png
 
     \target Transformations
     \section1 Transformations
@@ -9134,7 +9134,7 @@ QVariant QGraphicsPolygonItem::extension(const QVariant &variant) const
     returns the current line. By default the line is black with a
     width of 0, but you can change this by calling setPen().
 
-    \img graphicsview-lineitem.png
+    \image graphicsview-lineitem.png
 
     QGraphicsLineItem uses the line and the pen width to provide a reasonable
     implementation of boundingRect(), shape(), and contains(). The paint()
@@ -9779,7 +9779,7 @@ QVariant QGraphicsPixmapItem::extension(const QVariant &variant) const
 
     \note In order to align HTML text in the center, the item's text width must be set.
 
-    \img graphicsview-textitem.png
+    \image graphicsview-textitem.png
 
     \note QGraphicsTextItem accepts \l{QGraphicsItem::acceptHoverEvents()}{hover events}
           by default. You can change this with \l{QGraphicsItem::}{setAcceptHoverEvents()}.
@@ -10696,7 +10696,7 @@ void QGraphicsSimpleTextItemPrivate::updateBoundingRect()
     QGraphicsSimpleText does not display rich text; instead, you can use
     QGraphicsTextItem, which provides full text control capabilities.
 
-    \img graphicsview-simpletextitem.png
+    \image graphicsview-simpletextitem.png
 
     \sa QGraphicsTextItem, QGraphicsPathItem, QGraphicsRectItem,
     QGraphicsEllipseItem, QGraphicsPixmapItem, QGraphicsPolygonItem,
index 633e927..cb9ed36 100644 (file)
@@ -123,7 +123,7 @@ static const int QGRAPHICSVIEW_PREALLOC_STYLE_OPTIONS = 503; // largest prime <
     view coordinates and scene coordinates, and to find items on the scene
     using view coordinates.
 
-    \img graphicsview-view.png
+    \image graphicsview-view.png
 
     \sa QGraphicsScene, QGraphicsItem, QGraphicsSceneEvent
 */
index 2cf8932..e1d0129 100644 (file)
@@ -123,7 +123,7 @@ void QActionGroupPrivate::_q_actionHovered()
     exclusive by default, only one of the actions in the group is
     checked at any one time.
 
-    \img qactiongroup-align.png Alignment options in a QMenu
+    \image qactiongroup-align.png Alignment options in a QMenu
 
     A QActionGroup emits an triggered() signal when one of its
     actions is chosen. Each action in an action group emits its
index 9e98767..38f5253 100644 (file)
@@ -112,7 +112,7 @@ QT_BEGIN_NAMESPACE
     the appropriate help text is shown. The mode is left when help is
     given or when the user presses Esc.
 
-    \img whatsthis.png
+    \image whatsthis.png
 
     You can enter "What's This?" mode programmatically with
     enterWhatsThisMode(), check the mode with inWhatsThisMode(), and
index f7cf3b2..dda0aea 100644 (file)
@@ -87,7 +87,7 @@ QT_BEGIN_NAMESPACE
     documentation. QCDEStyle provides overloads for drawControl() and
     drawPrimitive() which are documented here.
 
-    \img qcdestyle.png
+    \image qcdestyle.png
     \sa QWindowsXPStyle, QMacStyle, QWindowsStyle, QPlastiqueStyle, QMotifStyle
 */
 
index d951894..840b223 100644 (file)
@@ -80,7 +80,7 @@
     reimplementations of QStyle functions; see QStyle for their
     documentation.
 
-    \img qmacstyle.png
+    \image qmacstyle.png
     \sa QWindowsXPStyle, QWindowsStyle, QPlastiqueStyle, QCDEStyle, QMotifStyle
 */
 
index f02771a..5492632 100644 (file)
@@ -97,7 +97,7 @@ static const int motifCheckMarkSpace    = 16;
   but with some minor improvements. The Motif style is Qt's default
   GUI style on Unix platforms.
 
-  \img qmotifstyle.png
+  \image qmotifstyle.png
   \sa QWindowsXPStyle, QMacStyle, QWindowsStyle, QPlastiqueStyle, QCDEStyle
 */
 
index c2b4d4c..5abf669 100644 (file)
@@ -1024,7 +1024,7 @@ QPlastiqueStylePrivate::~QPlastiqueStylePrivate()
     that closely resembles the Plastik style, introduced by Sandro Giessl in
     KDE 3.2.
 
-    \img qplastiquestyle.png
+    \image qplastiquestyle.png
     \sa QWindowsXPStyle, QMacStyle, QWindowsStyle, QCDEStyle, QMotifStyle
 */
 
index ba70daf..836f697 100644 (file)
@@ -161,7 +161,7 @@ static int unpackControlTypes(QSizePolicy::ControlTypes controls, QSizePolicy::C
     native widgets. The diagram below shows a QComboBox in eight
     different styles.
 
-    \img qstyle-comboboxes.png Eight combo boxes
+    \image qstyle-comboboxes.png Eight combo boxes
 
     Topics:
 
index 97721da..51f93fb 100644 (file)
@@ -260,7 +260,7 @@ bool QWindowsStyle::eventFilter(QObject *o, QEvent *e)
 
     This style is Qt's default GUI style on Windows.
 
-    \img qwindowsstyle.png
+    \image qwindowsstyle.png
     \sa QWindowsXPStyle, QMacStyle, QPlastiqueStyle, QCDEStyle, QMotifStyle
 */
 
index 18a28bc..599d93e 100644 (file)
@@ -1169,7 +1169,7 @@ void QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(XPThemeData &themeDa
     drawControlMask(), drawPrimitive(), proxy()->subControlRect(), and
     sizeFromContents(), are documented here.
 
-    \img qwindowsxpstyle.png
+    \image qwindowsxpstyle.png
     \sa QMacStyle, QWindowsStyle, QPlastiqueStyle, QCDEStyle, QMotifStyle
 */