Don't include scrollbars in client area size

Return the size of just the viewport when using QScrollArea.

Closes https://github.com/wxWidgets/wxWidgets/pull/1418
This commit is contained in:
Graham Dawes
2019-07-15 16:34:49 +01:00
committed by Vadim Zeitlin
parent 18b87b2ab5
commit cd7594e639
2 changed files with 25 additions and 2 deletions

View File

@@ -230,6 +230,11 @@ private:
QScrollBar *m_horzScrollBar; // owned by m_qtWindow when allocated
QScrollBar *m_vertScrollBar; // owned by m_qtWindow when allocated
// Return the viewport of m_qtContainer, if it's used, or just m_qtWindow.
//
// Always returns non-null pointer if the window has been already created.
QWidget *QtGetClientWidget() const;
QScrollBar *QtGetScrollBar( int orientation ) const;
QScrollBar *QtSetScrollBar( int orientation, QScrollBar *scrollBar=NULL );