Implement wxDisplay::GetClientArea() for wxQt too
This is as simple as implementing GetGeometry(), so just do it.
This commit is contained in:
@@ -20,6 +20,8 @@ public:
|
|||||||
wxDisplayImplQt( unsigned n );
|
wxDisplayImplQt( unsigned n );
|
||||||
|
|
||||||
virtual wxRect GetGeometry() const wxOVERRIDE;
|
virtual wxRect GetGeometry() const wxOVERRIDE;
|
||||||
|
virtual wxRect GetClientArea() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetName() const wxOVERRIDE;
|
virtual wxString GetName() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxArrayVideoModes GetModes(const wxVideoMode& mode) const wxOVERRIDE;
|
virtual wxArrayVideoModes GetModes(const wxVideoMode& mode) const wxOVERRIDE;
|
||||||
@@ -37,6 +39,11 @@ wxRect wxDisplayImplQt::GetGeometry() const
|
|||||||
return wxQtConvertRect( QApplication::desktop()->screenGeometry( GetIndex() ));
|
return wxQtConvertRect( QApplication::desktop()->screenGeometry( GetIndex() ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxRect wxDisplayImplQt::GetClientArea() const
|
||||||
|
{
|
||||||
|
return wxQtConvertRect( QApplication::desktop()->availableGeometry( GetIndex() ));
|
||||||
|
}
|
||||||
|
|
||||||
wxString wxDisplayImplQt::GetName() const
|
wxString wxDisplayImplQt::GetName() const
|
||||||
{
|
{
|
||||||
return wxString();
|
return wxString();
|
||||||
|
Reference in New Issue
Block a user