macOS: Remove unused method QCocoaWindow::nativeWindowGeometry
Its usage was removed in ef32f16fc2.
Change-Id: I5101131e401e615231ab05b241dd5b670f6a5a61
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
bb10
parent
fddcb19de1
commit
3e4d3209b2
|
|
@ -209,8 +209,6 @@ protected:
|
|||
void recreateWindowIfNeeded();
|
||||
QCocoaNSWindow *createNSWindow(bool shouldBePanel);
|
||||
|
||||
QRect nativeWindowGeometry() const;
|
||||
|
||||
Qt::WindowState windowState() const;
|
||||
void applyWindowState(Qt::WindowStates newState);
|
||||
void toggleMaximized();
|
||||
|
|
|
|||
|
|
@ -1443,19 +1443,6 @@ void QCocoaWindow::removeMonitor()
|
|||
monitor = nil;
|
||||
}
|
||||
|
||||
// Returns the current global screen geometry for the nswindow associated with this window.
|
||||
QRect QCocoaWindow::nativeWindowGeometry() const
|
||||
{
|
||||
if (!isContentView())
|
||||
return geometry();
|
||||
|
||||
NSRect rect = m_view.window.frame;
|
||||
QPlatformScreen *onScreen = QPlatformScreen::platformScreenForWindow(window());
|
||||
int flippedY = onScreen->geometry().height() - rect.origin.y - rect.size.height; // account for nswindow inverted y.
|
||||
QRect qRect = QRect(rect.origin.x, flippedY, rect.size.width, rect.size.height);
|
||||
return qRect;
|
||||
}
|
||||
|
||||
/*!
|
||||
Applies the given state to the NSWindow, going in/out of minimize/zoomed/fullscreen
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue