Implement wxDisplay::GetClientArea() for wxQt too

This is as simple as implementing GetGeometry(), so just do it.
This commit is contained in:
Vadim Zeitlin 2018-09-30 17:06:34 +02:00
parent 771e01cc73
commit c98d504b6d

View File

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