include/vcl/tabpage.hxx | 2 -- vcl/source/window/tabpage.cxx | 5 ----- 2 files changed, 7 deletions(-)
New commits: commit cd8bf886ac66511b06686886a301fbd8bfa6c87a Author: Samuel Mehrbrodt <[email protected]> AuthorDate: Tue Nov 24 08:59:11 2020 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Tue Nov 24 10:45:43 2020 +0100 Remove unused ScrollBarBox from tabpage This displays an empty rectangle at the upper left of the tabpage. Change-Id: I8424a3f8ec4896814b135aa2c86012f0b33ee1be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106479 Tested-by: Michael Weghorn <[email protected]> Reviewed-by: Michael Weghorn <[email protected]> diff --git a/include/vcl/tabpage.hxx b/include/vcl/tabpage.hxx index e69c45585b74..857929df3296 100644 --- a/include/vcl/tabpage.hxx +++ b/include/vcl/tabpage.hxx @@ -26,7 +26,6 @@ #include <vcl/IContext.hxx> class ScrollBar; -class ScrollBarBox; class VCL_DLLPUBLIC TabPage : public vcl::Window @@ -42,7 +41,6 @@ private: VclPtr<ScrollBar> m_pVScroll; VclPtr<ScrollBar> m_pHScroll; - VclPtr<ScrollBarBox> m_aScrollBarBox; Size maScrollArea; bool mbHasHoriBar; bool mbHasVertBar; diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx index 2f475bf700bd..0f37af8369b0 100644 --- a/vcl/source/window/tabpage.cxx +++ b/vcl/source/window/tabpage.cxx @@ -57,10 +57,6 @@ void TabPage::ImplInit( vcl::Window* pParent, WinBits nStyle ) if ( mbHasHoriBar || mbHasVertBar ) { - m_aScrollBarBox.set( - VclPtr<ScrollBarBox>::Create(this, - ((nStyle & (WB_VSCROLL|WB_HSCROLL)) ? WB_HIDE : 0))); - m_aScrollBarBox->Show(); SetStyle( GetStyle() | WB_CLIPCHILDREN ); } @@ -125,7 +121,6 @@ void TabPage::dispose() disposeBuilder(); m_pVScroll.disposeAndClear(); m_pHScroll.disposeAndClear(); - m_aScrollBarBox.disposeAndClear(); vcl::Window::dispose(); } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
