[Libreoffice-commits] core.git: include/sfx2 sfx2/source
Akshay Deep
akshaydeepiitr at gmail.com
Mon Nov 28 20:44:42 UTC 2016
include/sfx2/templatelocalview.hxx | 2 +-
sfx2/source/control/templatedefaultview.cxx | 2 +-
sfx2/source/control/templatelocalview.cxx | 4 ++--
sfx2/source/control/templatesearchview.cxx | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 9abc547ef28f3f6891030597fd304ca757b102da
Author: Akshay Deep <akshaydeepiitr at gmail.com>
Date: Mon Nov 28 20:21:26 2016 +0530
tdf#101870 - Template manager thumbnail view control needs a border
Change-Id: If1773b99aa816b2b45fe16127ff09a646e3702ae
Reviewed-on: https://gerrit.libreoffice.org/31324
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Akshay Deep <akshaydeepiitr at gmail.com>
diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx
index 8a3bfae..d75d86b 100644
--- a/include/sfx2/templatelocalview.hxx
+++ b/include/sfx2/templatelocalview.hxx
@@ -78,7 +78,7 @@ class SFX2_DLLPUBLIC TemplateLocalView : public ThumbnailView
public:
- TemplateLocalView ( vcl::Window* pParent );
+ TemplateLocalView ( vcl::Window* pParent, WinBits nWinStyle = WB_TABSTOP | WB_BORDER );
virtual ~TemplateLocalView () override;
virtual void dispose() override;
diff --git a/sfx2/source/control/templatedefaultview.cxx b/sfx2/source/control/templatedefaultview.cxx
index 9884e06..219c533 100644
--- a/sfx2/source/control/templatedefaultview.cxx
+++ b/sfx2/source/control/templatedefaultview.cxx
@@ -26,7 +26,7 @@ VCL_BUILDER_FACTORY(TemplateDefaultView)
static const int gnItemPadding(5); //TODO:: Change padding to 10. It looks really crowded and occupied.
TemplateDefaultView::TemplateDefaultView( Window* pParent)
- : TemplateLocalView(pParent)
+ : TemplateLocalView(pParent, WB_TABSTOP)
, mnTextHeight(30)
{
Rectangle aScreen = Application::GetScreenPosSizePixel(Application::GetDisplayBuiltInScreen());
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index a37dab2..6603a3c 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -88,8 +88,8 @@ bool ViewFilter_Application::operator () (const ThumbnailViewItem *pItem)
return true;
}
-TemplateLocalView::TemplateLocalView ( vcl::Window* pParent)
- : ThumbnailView(pParent),
+TemplateLocalView::TemplateLocalView ( vcl::Window* pParent, WinBits nWinStyle)
+ : ThumbnailView(pParent, nWinStyle),
mnCurRegionId(0),
maSelectedItem(nullptr),
mnThumbnailWidth(TEMPLATE_THUMBNAIL_MAX_WIDTH),
diff --git a/sfx2/source/control/templatesearchview.cxx b/sfx2/source/control/templatesearchview.cxx
index e1db4e5..8403143 100644
--- a/sfx2/source/control/templatesearchview.cxx
+++ b/sfx2/source/control/templatesearchview.cxx
@@ -24,7 +24,7 @@
#define MNI_DELETE 4
TemplateSearchView::TemplateSearchView (vcl::Window *pParent)
- : ThumbnailView(pParent,WB_TABSTOP | WB_VSCROLL),
+ : ThumbnailView(pParent,WB_TABSTOP | WB_VSCROLL | WB_BORDER),
maSelectedItem(nullptr),
maPosition(0,0)
{
More information about the Libreoffice-commits
mailing list