From 2a62ffdc80f0acfac21eb6c3af0709100fdcaee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Tue, 18 Aug 2015 14:05:09 +0200 Subject: Correct compile errors in sample code. Change-Id: I6cdccbd856f2e2b7180d369985ab83fc85415e22 Reviewed-by: Timur Pocheptsov --- src/macextras/qmactoolbar.mm | 4 ++-- 1 file 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 -- cgit v1.2.3