macOS: Remove unused method QCocoaWindow::parentCocoaWindow()

Last used in 2011, to determine QCocoaWindow::globalGeometry(),
which probably shouldn't have used transientParent in the first
place.

The parent is available through casting QPlatformWindow::parent().

Change-Id: I93fbcb41765944fbe0b79981ccf7d0062bb57719
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
bb10
Tor Arne Vestbø 2016-11-21 10:27:33 +01:00
parent e8ecde99df
commit 2a151bbe49
2 changed files with 0 additions and 10 deletions

View File

@ -284,7 +284,6 @@ protected:
QCocoaNSWindow *createNSWindow(bool shouldBeChildNSWindow, bool shouldBePanel);
QRect nativeWindowGeometry() const;
QCocoaWindow *parentCocoaWindow() const;
void syncWindowState(Qt::WindowState newState);
void reinsertChildWindow(QCocoaWindow *child);
void removeChildWindow(QCocoaWindow *child);

View File

@ -1751,15 +1751,6 @@ QRect QCocoaWindow::nativeWindowGeometry() const
return qRect;
}
// Returns a pointer to the parent QCocoaWindow for this window, or 0 if there is none.
QCocoaWindow *QCocoaWindow::parentCocoaWindow() const
{
if (window() && window()->transientParent()) {
return static_cast<QCocoaWindow*>(window()->transientParent()->handle());
}
return 0;
}
// Syncs the NSWindow minimize/maximize/fullscreen state with the current QWindow state
void QCocoaWindow::syncWindowState(Qt::WindowState newState)
{