diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2023-01-26 14:04:03 +0100 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2023-02-02 17:51:34 +0100 |
commit | fd65f709748a7026428cc3a8828784cbb8421a03 (patch) | |
tree | 7a6d004846f5ef8429440ff32973cdd2732e853f /examples/widgets/doc/src | |
parent | 57a1c2b0d94304b24d8ca9a49ecd5033ff9fc43a (diff) |
Fix analog clock example to adhere to guidelines
Guidelines: https://wiki.qt.io/Qt6/Example-Guideline
Pick-to: 6.5
Change-Id: I12c65ae11e7906fd2e9dfb449072199560488aed
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Diffstat (limited to 'examples/widgets/doc/src')
-rw-r--r-- | examples/widgets/doc/src/analogclock.qdoc | 5 | ||||
-rw-r--r-- | examples/widgets/doc/src/shapedclock.qdoc | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/examples/widgets/doc/src/analogclock.qdoc b/examples/widgets/doc/src/analogclock.qdoc index 09309853b1..2b318a3778 100644 --- a/examples/widgets/doc/src/analogclock.qdoc +++ b/examples/widgets/doc/src/analogclock.qdoc @@ -3,7 +3,10 @@ /*! \example widgets/analogclock - \title Analog Clock Example + \meta category {Graphics} + \meta tags {widgets} + + \title Analog Clock \ingroup examples-widgets \brief The Analog Clock example shows how to draw the contents of a custom widget. diff --git a/examples/widgets/doc/src/shapedclock.qdoc b/examples/widgets/doc/src/shapedclock.qdoc index a571086370..4ce341266a 100644 --- a/examples/widgets/doc/src/shapedclock.qdoc +++ b/examples/widgets/doc/src/shapedclock.qdoc @@ -25,7 +25,7 @@ \section1 ShapedClock Class Definition The \c ShapedClock class is based on the \c AnalogClock class defined in the - \l{Analog Clock Example}{Analog Clock} example. The whole class definition is + \l{Analog Clock} example. The whole class definition is presented below: \snippet widgets/shapedclock/shapedclock.h 0 @@ -77,7 +77,7 @@ cursor position in global coordinates. If we drag the widget, we also accept the event. The \c paintEvent() function is mainly the same as described in the - \l{Analog Clock Example}{Analog Clock} example. The one addition is that we + \l{Analog Clock} example. The one addition is that we use QPainter::drawEllipse() to draw a round clock face with the current palette's default background color. We make the clock face a bit smaller than the widget mask, so that the anti-aliased, semi-transparent pixels on |