From 97b5b8009254004608feefb903cbf44abaa099f6 Mon Sep 17 00:00:00 2001 From: Casper van Donderen Date: Mon, 7 May 2012 18:49:48 +0200 Subject: Doc: Modularize QtWidgets documentation. This change moves the snippets and images to the modularized directories. Change-Id: Idec1afb9db7ea6add1ca4cf25ec4019d8bce0c4d Reviewed-by: Marius Storm-Olsen --- src/widgets/widgets/qdialogbuttonbox.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/widgets/widgets/qdialogbuttonbox.cpp') diff --git a/src/widgets/widgets/qdialogbuttonbox.cpp b/src/widgets/widgets/qdialogbuttonbox.cpp index b787522a50..bcf0753d33 100644 --- a/src/widgets/widgets/qdialogbuttonbox.cpp +++ b/src/widgets/widgets/qdialogbuttonbox.cpp @@ -86,19 +86,19 @@ QT_BEGIN_NAMESPACE destructive results. Most dialogs have buttons that can almost be considered standard (e.g. - \gui OK and \gui Cancel buttons). It is sometimes convenient to create these + \uicontrol OK and \uicontrol Cancel buttons). It is sometimes convenient to create these buttons in a standard way. There are a couple ways of using QDialogButtonBox. One ways is to create the buttons (or button texts) yourself and add them to the button box, specifying their role. - \snippet examples/dialogs/extension/finddialog.cpp 1 + \snippet dialogs/extension/finddialog.cpp 1 Alternatively, QDialogButtonBox provides several standard buttons (e.g. OK, Cancel, Save) that you can use. They exist as flags so you can OR them together in the constructor. - \snippet examples/dialogs/tabdialog/tabdialog.cpp 2 + \snippet dialogs/tabdialog/tabdialog.cpp 2 You can mix and match normal buttons and standard buttons. @@ -133,6 +133,8 @@ QT_BEGIN_NAMESPACE \table \row \li modeless horizontal MacLayout \li \inlineimage buttonbox-mac-modeless-horizontal.png Screenshot of modeless horizontal MacLayout + \row \li modeless vertical MacLayout + \li \inlineimage buttonbox-mac-modeless-vertical.png Screenshot of modeless vertical MacLayout \endtable When a button is clicked in the button box, the clicked() signal is emitted -- cgit v1.2.3