From 4ba8bab150ce972f35ae055ddce7e401afda6141 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Thu, 26 Feb 2015 21:05:49 +0100 Subject: Fix Carbon build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iae9445d1777ffced3d998e3f9a0a57117fa8d192 Reviewed-by: Morten Johan Sørvig --- src/gui/kernel/qwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 7a0b047..c7e9352 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -10015,7 +10015,7 @@ QWidget *QWidgetPrivate::childAtRecursiveHelper(const QPoint &p, bool ignoreChil // Map the point 'p' from parent coordinates to child coordinates. QPoint childPoint = p; -#ifdef Q_WS_MAC +#if defined(Q_WS_MAC) && defined(QT_MAC_USE_COCOA) // 'includeFrame' is true if the child's parent is a top-level QMainWindow with an unified tool bar. // An unified tool bar on the Mac lives outside QMainWindow's geometry(), so a normal // QWidget::mapFromParent won't do the trick. -- cgit v0.12