aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@theqtcompany.com>2015-08-18 14:05:09 +0200
committerMorten Johan Sørvig <morten.sorvig@theqtcompany.com>2015-08-20 08:55:40 +0000
commit2a62ffdc80f0acfac21eb6c3af0709100fdcaee9 (patch)
tree7046605567aed8fd3cf5426d96e13e7bae963f44
parent5530d609962ef71de97f4ba6165e724fe5c2bbe4 (diff)
Correct compile errors in sample code.
Change-Id: I6cdccbd856f2e2b7180d369985ab83fc85415e22 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
-rw-r--r--src/macextras/qmactoolbar.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macextras/qmactoolbar.mm b/src/macextras/qmactoolbar.mm
index 5c05876..5a04c18 100644
--- a/src/macextras/qmactoolbar.mm
+++ b/src/macextras/qmactoolbar.mm
@@ -77,10 +77,10 @@ QT_BEGIN_NAMESPACE
\code
QMacToolBar *toolBar = new QMacToolBar(this);
QMacToolBarItem *toolBarItem = toolBar->addItem(QIcon(), QStringLiteral("foo"));
- connect(toolButton, SIGNAL(activated()), this, SLOT(fooClicked()))
+ connect(toolBarItem, SIGNAL(activated()), this, SLOT(fooClicked()));
this->window()->winId(); // create window->windowhandle()
- toolBar->attachToWindow(this->window()->windowHandle())
+ toolBar->attachToWindow(this->window()->windowHandle());
\endcode
\sa QMacToolBarItem