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
parent
e8ecde99df
commit
2a151bbe49
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue