From c131a83f420a3b24a0972efa351dc75df7ec739d Mon Sep 17 00:00:00 2001 From: Nico Vertriest Date: Wed, 16 Nov 2016 17:33:12 +0100 Subject: Doc: update Qt Widgets examples - \image --> \borderedimage - update screenshot if required Change-Id: I0318b1df67154b70c061da7cbd509b8d5337b311 Reviewed-by: Venugopal Shivashankar --- .../systray/doc/images/systemtray-editor.png | Bin 18147 -> 25407 bytes .../widgets/desktop/systray/doc/src/systray.qdoc | 5 +++-- examples/widgets/doc/images/systemtray-editor.png | Bin 18147 -> 25407 bytes examples/widgets/doc/src/analogclock.qdoc | 3 ++- examples/widgets/doc/src/calculator.qdoc | 6 ++++-- examples/widgets/doc/src/calendarwidget.qdoc | 2 +- examples/widgets/doc/src/charactermap.qdoc | 3 ++- examples/widgets/doc/src/codeeditor.qdoc | 2 +- examples/widgets/doc/src/digitalclock.qdoc | 3 ++- examples/widgets/doc/src/groupbox.qdoc | 2 +- examples/widgets/doc/src/imageviewer.qdoc | 3 ++- examples/widgets/doc/src/lineedits.qdoc | 2 +- examples/widgets/doc/src/movie.qdoc | 2 +- examples/widgets/doc/src/shapedclock.qdoc | 2 +- examples/widgets/doc/src/sliders.qdoc | 3 ++- examples/widgets/doc/src/spinboxes.qdoc | 2 +- examples/widgets/doc/src/styles.qdoc | 3 ++- examples/widgets/doc/src/stylesheet.qdoc | 3 ++- examples/widgets/doc/src/tetrix.qdoc | 2 +- examples/widgets/doc/src/wiggly.qdoc | 3 ++- examples/widgets/doc/src/windowflags.qdoc | 3 ++- 21 files changed, 33 insertions(+), 21 deletions(-) (limited to 'examples') diff --git a/examples/widgets/desktop/systray/doc/images/systemtray-editor.png b/examples/widgets/desktop/systray/doc/images/systemtray-editor.png index fb15dea8cb..f7c23db28a 100644 Binary files a/examples/widgets/desktop/systray/doc/images/systemtray-editor.png and b/examples/widgets/desktop/systray/doc/images/systemtray-editor.png differ diff --git a/examples/widgets/desktop/systray/doc/src/systray.qdoc b/examples/widgets/desktop/systray/doc/src/systray.qdoc index b89fed72e0..fe397f83df 100644 --- a/examples/widgets/desktop/systray/doc/src/systray.qdoc +++ b/examples/widgets/desktop/systray/doc/src/systray.qdoc @@ -32,7 +32,8 @@ \brief The System Tray Icon example shows how to add an icon with a menu and popup messages to a desktop environment's system tray. - \image systemtray-example.png Screenshot of the System Tray Icon. + \borderedimage systemtray-example.png + \caption Screenshot of the System Tray Icon Modern operating systems usually provide a special area on the desktop, called the system tray or notification area, where @@ -42,7 +43,7 @@ the main application window (i.e., an editor for the system tray icon) and the associated icon. - \image systemtray-editor.png + \borderedimage systemtray-editor.png The editor allows the user to choose the preferred icon as well as set the balloon message's type and duration. The user can also diff --git a/examples/widgets/doc/images/systemtray-editor.png b/examples/widgets/doc/images/systemtray-editor.png index fb15dea8cb..f7c23db28a 100644 Binary files a/examples/widgets/doc/images/systemtray-editor.png and b/examples/widgets/doc/images/systemtray-editor.png differ diff --git a/examples/widgets/doc/src/analogclock.qdoc b/examples/widgets/doc/src/analogclock.qdoc index d59f9070c5..ff65f97730 100644 --- a/examples/widgets/doc/src/analogclock.qdoc +++ b/examples/widgets/doc/src/analogclock.qdoc @@ -32,7 +32,8 @@ \brief The Analog Clock example shows how to draw the contents of a custom widget. - \image analogclock-example.png Screenshot of the Analog Clock example + \borderedimage analogclock-example.png + \caption Screenshot of the Analog Clock example This example also demonstrates how the transformation and scaling features of QPainter can be used to make drawing custom widgets diff --git a/examples/widgets/doc/src/calculator.qdoc b/examples/widgets/doc/src/calculator.qdoc index 4ee1248e6c..83d85a7fe8 100644 --- a/examples/widgets/doc/src/calculator.qdoc +++ b/examples/widgets/doc/src/calculator.qdoc @@ -33,7 +33,8 @@ functionality of a calculator widget, and how to use QGridLayout to place child widgets in a grid. - \image calculator-example.png Screenshot of the Calculator example + \borderedimage calculator-example.png + \caption Screenshot of the Calculator example The example consists of two classes: @@ -370,6 +371,7 @@ QSizePolicy::Expanding in the constructor and if we didn't reimplement QWidget::sizeHint(). - \image calculator-ugly.png The Calculator example with default size policies and size hints + \borderedimage calculator-ugly.png + \caption The Calculator example with default size policies and size hints */ diff --git a/examples/widgets/doc/src/calendarwidget.qdoc b/examples/widgets/doc/src/calendarwidget.qdoc index 8ab73668cf..c2d86d830c 100644 --- a/examples/widgets/doc/src/calendarwidget.qdoc +++ b/examples/widgets/doc/src/calendarwidget.qdoc @@ -31,7 +31,7 @@ \ingroup examples-widgets \brief The Calendar Widget example shows use of QCalendarWidget. - \image calendarwidgetexample.png + \borderedimage calendarwidgetexample.png QCalendarWidget displays one calendar month at a time and lets the user select a date. diff --git a/examples/widgets/doc/src/charactermap.qdoc b/examples/widgets/doc/src/charactermap.qdoc index ec6a2c6fe3..3cf4a1210b 100644 --- a/examples/widgets/doc/src/charactermap.qdoc +++ b/examples/widgets/doc/src/charactermap.qdoc @@ -38,7 +38,8 @@ copied into the clipboard, and pasted into other applications. The purpose behind this sort of tool is to allow users to enter characters that may be unavailable or difficult to locate on their keyboards. -\image charactermap-example.png Screenshot of the Character Map example +\borderedimage charactermap-example.png +\caption Screenshot of the Character Map example The example consists of the following classes: diff --git a/examples/widgets/doc/src/codeeditor.qdoc b/examples/widgets/doc/src/codeeditor.qdoc index bcc3564eb9..7f09f4bba0 100644 --- a/examples/widgets/doc/src/codeeditor.qdoc +++ b/examples/widgets/doc/src/codeeditor.qdoc @@ -32,7 +32,7 @@ \brief The Code Editor example shows how to create a simple editor that has line numbers and that highlights the current line. - \image codeeditor-example.png + \borderedimage codeeditor-example.png As can be seen from the image, the editor displays the line numbers in an area to the left of the area for editing. The editor diff --git a/examples/widgets/doc/src/digitalclock.qdoc b/examples/widgets/doc/src/digitalclock.qdoc index aa0d898ec9..aff349adb8 100644 --- a/examples/widgets/doc/src/digitalclock.qdoc +++ b/examples/widgets/doc/src/digitalclock.qdoc @@ -32,7 +32,8 @@ \brief The Digital Clock example shows how to use QLCDNumber to display a number with LCD-like digits. - \image digitalclock-example.png Screenshot of the Digital Clock example + \borderedimage digitalclock-example.png + \caption Screenshot of the Digital Clock example This example also demonstrates how QTimer can be used to update a widget at regular intervals. diff --git a/examples/widgets/doc/src/groupbox.qdoc b/examples/widgets/doc/src/groupbox.qdoc index d567f57272..b9da2f05f4 100644 --- a/examples/widgets/doc/src/groupbox.qdoc +++ b/examples/widgets/doc/src/groupbox.qdoc @@ -40,7 +40,7 @@ Group boxes are usually used to organize check boxes and radio buttons into exclusive groups. - \image groupbox-example.png + \borderedimage groupbox-example.png The Group Boxes example consists of a single \c Window class that is used to show four group boxes: an exclusive radio button group, diff --git a/examples/widgets/doc/src/imageviewer.qdoc b/examples/widgets/doc/src/imageviewer.qdoc index 02fc4cd56f..91b6385356 100644 --- a/examples/widgets/doc/src/imageviewer.qdoc +++ b/examples/widgets/doc/src/imageviewer.qdoc @@ -44,7 +44,8 @@ can be used to implement zooming and scaling features. In addition the example shows how to use QPainter to print an image. - \image imageviewer-example.png Screenshot of the Image Viewer example + \borderedimage imageviewer-example.png + \caption Screenshot of the Image Viewer example With the Image Viewer application, the users can view an image of their choice. The \uicontrol File menu gives the user the possibility diff --git a/examples/widgets/doc/src/lineedits.qdoc b/examples/widgets/doc/src/lineedits.qdoc index 906ec76962..5cf321bbb1 100644 --- a/examples/widgets/doc/src/lineedits.qdoc +++ b/examples/widgets/doc/src/lineedits.qdoc @@ -34,7 +34,7 @@ on the input and output supplied by the user. - \image lineedits-example.png + \borderedimage lineedits-example.png The example consists of a single \c Window class, containing a selection of line edits with different input constraints and display properties that can be diff --git a/examples/widgets/doc/src/movie.qdoc b/examples/widgets/doc/src/movie.qdoc index a5c06ce93a..2363383ffe 100644 --- a/examples/widgets/doc/src/movie.qdoc +++ b/examples/widgets/doc/src/movie.qdoc @@ -36,5 +36,5 @@ a simple animation without the added complexity of a multimedia framework to install and deploy. - \image movie-example.png + \borderedimage movie-example.png */ diff --git a/examples/widgets/doc/src/shapedclock.qdoc b/examples/widgets/doc/src/shapedclock.qdoc index 9e21e519fe..2e5d8b1496 100644 --- a/examples/widgets/doc/src/shapedclock.qdoc +++ b/examples/widgets/doc/src/shapedclock.qdoc @@ -32,7 +32,7 @@ \brief The Shaped Clock example shows how to apply a widget mask to a top-level widget to produce a shaped window. - \image shapedclock-example.png + \borderedimage shapedclock-example.png Widget masks are used to customize the shapes of top-level widgets by restricting the available area for painting. On some window systems, setting certain window flags diff --git a/examples/widgets/doc/src/sliders.qdoc b/examples/widgets/doc/src/sliders.qdoc index b8ef2ace39..eb9a932c76 100644 --- a/examples/widgets/doc/src/sliders.qdoc +++ b/examples/widgets/doc/src/sliders.qdoc @@ -43,7 +43,8 @@ The example also demonstrates how signals and slots can be used to synchronize the behavior of two or more widgets. - \image sliders-example.png Screenshot of the Sliders example + \borderedimage sliders-example.png + \caption Screenshot of the Sliders example The Sliders example consists of two classes: diff --git a/examples/widgets/doc/src/spinboxes.qdoc b/examples/widgets/doc/src/spinboxes.qdoc index 2be6321782..4478ce12d2 100644 --- a/examples/widgets/doc/src/spinboxes.qdoc +++ b/examples/widgets/doc/src/spinboxes.qdoc @@ -33,7 +33,7 @@ spin boxes available in Qt, from a simple QSpinBox widget to more complex editors like the QDateTimeEdit widget. - \image spinboxes-example.png + \borderedimage spinboxes-example.png The example consists of a single \c Window class that is used to display the different spin box-based widgets available with Qt. diff --git a/examples/widgets/doc/src/styles.qdoc b/examples/widgets/doc/src/styles.qdoc index abab595434..4fea8f3bfc 100644 --- a/examples/widgets/doc/src/styles.qdoc +++ b/examples/widgets/doc/src/styles.qdoc @@ -32,7 +32,8 @@ \brief The Styles example illustrates how to create custom widget drawing styles using Qt, and demonstrates Qt's predefined styles. - \image styles-enabledwood.png Screenshot of the Styles example + \borderedimage styles-enabledwood.png + \caption Screenshot of the Styles example A style in Qt is a subclass of QStyle or of one of its subclasses. Styles perform drawing on behalf of widgets. Qt diff --git a/examples/widgets/doc/src/stylesheet.qdoc b/examples/widgets/doc/src/stylesheet.qdoc index de330ce131..0016836f0d 100644 --- a/examples/widgets/doc/src/stylesheet.qdoc +++ b/examples/widgets/doc/src/stylesheet.qdoc @@ -31,6 +31,7 @@ \ingroup examples-widgets \brief The Style Sheet Example shows how to use style sheets. - \image stylesheet-pagefold.png Screen Shot of the Pagefold style sheet + \borderedimage stylesheet-pagefold.png + \caption Screen Shot of the Pagefold style sheet */ diff --git a/examples/widgets/doc/src/tetrix.qdoc b/examples/widgets/doc/src/tetrix.qdoc index 12aa23606b..ddcf95013b 100644 --- a/examples/widgets/doc/src/tetrix.qdoc +++ b/examples/widgets/doc/src/tetrix.qdoc @@ -31,7 +31,7 @@ \ingroup examples-widgets \brief The Tetrix example is a Qt version of the classic Tetrix game. - \image tetrix-example.png + \borderedimage tetrix-example.png The object of the game is to stack pieces dropped from the top of the playing area so that they fill entire rows at the bottom of the playing area. diff --git a/examples/widgets/doc/src/wiggly.qdoc b/examples/widgets/doc/src/wiggly.qdoc index bf14f7ba0d..f330b016df 100644 --- a/examples/widgets/doc/src/wiggly.qdoc +++ b/examples/widgets/doc/src/wiggly.qdoc @@ -34,7 +34,8 @@ addition, the example demonstrates how to use QFontMetrics to determine the size of text on screen. - \image wiggly-example.png Screenshot of the Wiggly example + \borderedimage wiggly-example.png + \caption Screenshot of the Wiggly example QBasicTimer is a low-level class for timers. Unlike QTimer, QBasicTimer doesn't inherit from QObject; instead of emitting a diff --git a/examples/widgets/doc/src/windowflags.qdoc b/examples/widgets/doc/src/windowflags.qdoc index 636c605370..3fe00cd266 100644 --- a/examples/widgets/doc/src/windowflags.qdoc +++ b/examples/widgets/doc/src/windowflags.qdoc @@ -41,7 +41,8 @@ A widget's flags are stored in a Qt::WindowFlags type which stores an OR combination of the flags. - \image windowflags-example.png Screenshot of the Window Flags example + \borderedimage windowflags-example.png + \caption Screenshot of the Window Flags example The example consists of two classes: -- cgit v1.2.3