summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorCasper van Donderen <casper.vandonderen@nokia.com>2011-09-30 07:56:46 (GMT)
committerCasper van Donderen <casper.vandonderen@nokia.com>2011-09-30 07:56:46 (GMT)
commit1a5b3356e5c07d4be19662fac1653ae98cddbbaa (patch)
treed6a129587483ba233b6d8908d1122864ce4ac2b1 /examples
parentb5062aeeb4ad321424246ecb8bf7a0ffb9ac9990 (diff)
downloadQt-1a5b3356e5c07d4be19662fac1653ae98cddbbaa.zip
Qt-1a5b3356e5c07d4be19662fac1653ae98cddbbaa.tar.gz
Qt-1a5b3356e5c07d4be19662fac1653ae98cddbbaa.tar.bz2
Add another part of the source code to the snippet.
Fixes: QTBUG-21765
Diffstat (limited to 'examples')
-rw-r--r--examples/dialogs/extension/finddialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/dialogs/extension/finddialog.cpp b/examples/dialogs/extension/finddialog.cpp
index 2ce0391..2457a5b 100644
--- a/examples/dialogs/extension/finddialog.cpp
+++ b/examples/dialogs/extension/finddialog.cpp
@@ -104,9 +104,11 @@ FindDialog::FindDialog(QWidget *parent)
connect(backSoftKeyAction, SIGNAL(triggered()), qApp, SLOT(quit()));
addAction(backSoftKeyAction);
#else
+//! [6]
buttonBox = new QDialogButtonBox(Qt::Vertical);
buttonBox->addButton(findButton, QDialogButtonBox::ActionRole);
buttonBox->addButton(moreButton, QDialogButtonBox::ActionRole);
+//! [6]
connect(moreButton, SIGNAL(toggled(bool)), extension, SLOT(setVisible(bool)));
#endif