summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2014-04-02 12:35:09 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-05 08:15:24 +0200
commitbd2ec12a7b2787638aa3f7932c20ae4d6577734e (patch)
tree7334447f01720ff22a360077ede4c04efe676645 /src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm
parentbb73d8d0704fbef9bd54fedccfe1e4647f3063cc (diff)
Cocoa: Make QScreen::topLevelAt() work correctly
The QPlatformScreen::topLevelAt() default implementation is flawed in that it does not check z-ordering but simply returns the first window in the window list that contains the test point. Add QCocoaScreen::topLevelAt(). Use [NSApp orderedWindows] to iterate through the window list in z order. Add a NSWindow->QCococaWindow mapping hash to QCocoaIntegration for getting the corresponding QWindow once a NSWindow is found. Task-number: QTBUG-37597 Change-Id: I7af70163a32528cb56f8d6caa037b98f580ee191 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm')
0 files changed, 0 insertions, 0 deletions