summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-07-01 12:34:43 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-07-01 12:51:51 (GMT)
commit1d32cdf73843ba98104fdbc6d5d0a296dbb689b0 (patch)
tree12f9d79ecf23bd36fc5c86b80a760e5751216575
parente14d27dc775d508dc7300e36ba6a3809eb3f61e4 (diff)
downloadQt-1d32cdf73843ba98104fdbc6d5d0a296dbb689b0.zip
Qt-1d32cdf73843ba98104fdbc6d5d0a296dbb689b0.tar.gz
Qt-1d32cdf73843ba98104fdbc6d5d0a296dbb689b0.tar.bz2
Remove this stale function.
-rw-r--r--src/gui/kernel/qapplication_mac.mm23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/gui/kernel/qapplication_mac.mm b/src/gui/kernel/qapplication_mac.mm
index ce4e422..0884976 100644
--- a/src/gui/kernel/qapplication_mac.mm
+++ b/src/gui/kernel/qapplication_mac.mm
@@ -1367,29 +1367,6 @@ QWidget *QApplication::topLevelAt(const QPoint &p)
#endif
}
-static QWidget *qt_mac_recursive_widgetAt(QWidget *widget, int x, int y)
-{
- if (!widget)
- return 0;
- const QObjectList kids = widget->children();
- for(int i = kids.size()-1; i >= 0; --i) {
- if ( QWidget *kid = qobject_cast<QWidget*>(kids.at(i)) ) {
- if (kid->isVisible() && !kid->isTopLevel() &&
- !kid->testAttribute(Qt::WA_TransparentForMouseEvents)) {
- const int wx=kid->x(), wy=kid->y(),
- wx2=wx+kid->width(), wy2=wy+kid->height();
- if (x >= wx && y >= wy && x < wx2 && y < wy2) {
- const QRegion mask = kid->mask();
- if (!mask.isEmpty() && !mask.contains(QPoint(x-wx, y-wy)))
- continue;
- return qt_mac_recursive_widgetAt(kid, x-wx, y-wy);
- }
- }
- }
- }
- return widget;
-}
-
/*****************************************************************************
Main event loop
*****************************************************************************/