[Libreoffice-commits] core.git: include/vcl vcl/source
Samuel Mehrbrodt (via logerrit)
logerrit at kemper.freedesktop.org
Tue Nov 24 09:04:48 UTC 2020
include/vcl/tabpage.hxx | 2 --
vcl/source/window/tabpage.cxx | 5 -----
2 files changed, 7 deletions(-)
New commits:
commit 6df0e538ff05b98e1123c5ad1d77f554007bff12
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Tue Nov 24 08:59:11 2020 +0100
Commit: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Tue Nov 24 10:04:18 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/+/106480
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/include/vcl/tabpage.hxx b/include/vcl/tabpage.hxx
index 1a66bab9eabd..45d1c1220d60 100644
--- a/include/vcl/tabpage.hxx
+++ b/include/vcl/tabpage.hxx
@@ -25,7 +25,6 @@
#include <vcl/IContext.hxx>
class ScrollBar;
-class ScrollBarBox;
class VCL_DLLPUBLIC TabPage
: public vcl::Window
@@ -40,7 +39,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 0ee256425709..f3acc5998ec3 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 );
}
@@ -113,7 +109,6 @@ void TabPage::dispose()
{
m_pVScroll.disposeAndClear();
m_pHScroll.disposeAndClear();
- m_aScrollBarBox.disposeAndClear();
vcl::Window::dispose();
}
More information about the Libreoffice-commits
mailing list