From c98d504b6d636365fd7543d74bcb646eecfc5d17 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Sep 2018 17:06:34 +0200 Subject: [PATCH] Implement wxDisplay::GetClientArea() for wxQt too This is as simple as implementing GetGeometry(), so just do it. --- src/qt/display.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/qt/display.cpp b/src/qt/display.cpp index a5d1d829dd..9a39545451 100644 --- a/src/qt/display.cpp +++ b/src/qt/display.cpp @@ -20,6 +20,8 @@ public: wxDisplayImplQt( unsigned n ); virtual wxRect GetGeometry() const wxOVERRIDE; + virtual wxRect GetClientArea() const wxOVERRIDE; + virtual wxString GetName() const wxOVERRIDE; virtual wxArrayVideoModes GetModes(const wxVideoMode& mode) const wxOVERRIDE; @@ -37,6 +39,11 @@ wxRect wxDisplayImplQt::GetGeometry() const return wxQtConvertRect( QApplication::desktop()->screenGeometry( GetIndex() )); } +wxRect wxDisplayImplQt::GetClientArea() const +{ + return wxQtConvertRect( QApplication::desktop()->availableGeometry( GetIndex() )); +} + wxString wxDisplayImplQt::GetName() const { return wxString();