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
Tor Arne Vestbø 2017-11-08 13:35:56 +01:00
parent fddcb19de1
commit 3e4d3209b2
2 changed files with 0 additions and 15 deletions

View File

@ -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();

View File

@ -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