summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/sipdialog.qdoc
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@nokia.com>2012-08-21 16:13:49 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-23 11:20:37 +0200
commitfc924ae47e73a5b41e274a723d8f7cdefe921c4f (patch)
tree560b0969b970c262c5ebbc9eaa4d23157f103e19 /examples/widgets/doc/sipdialog.qdoc
parent8e0bac89d4b0f01b71c57f79a3b98a6ecb7f20ae (diff)
Doc: Fix snippet and example referencing widget examples
Widget examples were moved into a widgets subfolder, but qdoc references were not updated. Change-Id: Id2a4573e723745b9827c664c852807d6116f8f6d Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'examples/widgets/doc/sipdialog.qdoc')
-rw-r--r--examples/widgets/doc/sipdialog.qdoc20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/widgets/doc/sipdialog.qdoc b/examples/widgets/doc/sipdialog.qdoc
index b5f18cb4be..7bd054e12d 100644
--- a/examples/widgets/doc/sipdialog.qdoc
+++ b/examples/widgets/doc/sipdialog.qdoc
@@ -26,7 +26,7 @@
****************************************************************************/
/*!
- \example dialogs/sipdialog
+ \example widgets/dialogs/sipdialog
\title SIP Dialog Example
\ingroup qtce
@@ -50,7 +50,7 @@
slot, \c desktopResized(), and a public function, \c reactToSIP(). Also,
it holds a private instance of QRect, \c desktopGeometry.
- \snippet dialogs/sipdialog/dialog.h Dialog header
+ \snippet widgets/dialogs/sipdialog/dialog.h Dialog header
\section1 Dialog Class Implementation
@@ -59,7 +59,7 @@
\l{QDesktopWidget::availableGeometry()}{availableGeometry()}. The
parameter used is \c 0 to indicate that we require the primary screen.
- \snippet dialogs/sipdialog/dialog.cpp Dialog constructor part1
+ \snippet widgets/dialogs/sipdialog/dialog.cpp Dialog constructor part1
We set the window's title to "SIP Dialog Example" and declare a QScrollArea
object, \c scrollArea. Next we instantiate a QGroupBox, \c groupBox, with
@@ -71,7 +71,7 @@
\l{QWidget::setMinimumWidth()}{minimumWidth} property to 220 pixels,
respectively.
- \snippet dialogs/sipdialog/dialog.cpp Dialog constructor part2
+ \snippet widgets/dialogs/sipdialog/dialog.cpp Dialog constructor part2
Also, all three widgets' text are set accordingly. The
\l{QGridLayout::setVerticalSpacing()}{verticalSpacing} property of
@@ -79,14 +79,14 @@
is to adapt to the different form factors of Windows Mobile. Then, we
add our widgets to the layout.
- \snippet dialogs/sipdialog/dialog.cpp Dialog constructor part3
+ \snippet widgets/dialogs/sipdialog/dialog.cpp Dialog constructor part3
The \c{scrollArea}'s widget is set to \c groupBox. We use a QHBoxLayout
object, \c layout, to contain \c scrollArea. The \c{Dialog}'s layout
is set to \c layout and the scroll area's horizontal scroll bar is turned
off.
- \snippet dialogs/sipdialog/dialog.cpp Dialog constructor part4
+ \snippet widgets/dialogs/sipdialog/dialog.cpp Dialog constructor part4
The following signals are connected to their respective slots:
\list
@@ -97,19 +97,19 @@
{workAreaResized()} signal to \c{dialog}'s \c desktopResized() slot.
\endlist
- \snippet dialogs/sipdialog/dialog.cpp Dialog constructor part5
+ \snippet widgets/dialogs/sipdialog/dialog.cpp Dialog constructor part5
The \c desktopResized() function accepts an integer, \a screen,
corresponding to the screen's index. We only invoke \c reactToSIP()
if \a screen is the primary screen (e.g. index = 0).
- \snippet dialogs/sipdialog/dialog.cpp desktopResized() function
+ \snippet widgets/dialogs/sipdialog/dialog.cpp desktopResized() function
The \c reactToSIP() function resizes \c dialog accordingly if the
desktop's available geometry changed vertically, as this change signifies
that the SIP may have been opened or closed.
- \snippet dialogs/sipdialog/dialog.cpp reactToSIP() function
+ \snippet widgets/dialogs/sipdialog/dialog.cpp reactToSIP() function
If the height has decreased, we unset the maximized window state.
Otherwise, we set the maximized window state. Lastly, we update
@@ -120,7 +120,7 @@
The \c main() function for the SIP Dialog example instantiates \c Dialog
and invokes its \l{QDialog::exec()}{exec()} function.
- \snippet dialogs/sipdialog/main.cpp main() function
+ \snippet widgets/dialogs/sipdialog/main.cpp main() function
\note Although this example uses a dialog, the techniques used here apply to
all top-level widgets respectively.