summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qt_mac_p.h
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-04-06 17:18:22 +0200
committerNorwegian Rock Cat <qt-info@nokia.com>2009-04-07 09:29:36 +0200
commit640f2c732c6fd76866cd7e601a9140dbe7849e6f (patch)
tree111722cec5e3f98019811d5e61e5cae6ee86a7ee /src/gui/kernel/qt_mac_p.h
parent974680679b03c668ffce87bd50b5dacf44b0fa22 (diff)
BT: Fix regression when tooltips dissappear suddenly in Unified toolbar
QWidget::childAt() makes some assumptions about its children (they are all contained in its geometry). This does not hold up when using the unified toolbar because the toolbar ends up in the "non-client" area. So, when dispatching an enter/leave event in tooltip show, we end up dispatching to the wrong widgets and that results in the tooltip cleverly thinking that it needs to hide itself because we've left the widget that needs the tooltip. I've special cased this by just having a "native" mapFromParent() that is only called for on the mac, though there is nothing that is limiting this from being called on other platfroms. Also QWidget::mapFromParent() probably needs to be looked at at some point. Task-number: 248048 Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src/gui/kernel/qt_mac_p.h')
-rw-r--r--src/gui/kernel/qt_mac_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_mac_p.h b/src/gui/kernel/qt_mac_p.h
index 3aec23fcf3..e65492deba 100644
--- a/src/gui/kernel/qt_mac_p.h
+++ b/src/gui/kernel/qt_mac_p.h
@@ -233,6 +233,7 @@ extern QPaintDevice *qt_mac_safe_pdev; //qapplication_mac.cpp
extern OSWindowRef qt_mac_window_for(const QWidget*); //qwidget_mac.mm
extern OSViewRef qt_mac_nativeview_for(const QWidget *); //qwidget_mac.mm
+extern QPoint qt_mac_nativeMapFromParent(const QWidget *child, const QPoint &pt); //qwidget_mac.mm
#ifdef check
# undef check