Kaydet (Commit) 9abc547e authored tarafından Akshay Deep's avatar Akshay Deep

tdf#101870 - Template manager thumbnail view control needs a border

Change-Id: If1773b99aa816b2b45fe16127ff09a646e3702ae
Reviewed-on: https://gerrit.libreoffice.org/31324Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAkshay Deep <akshaydeepiitr@gmail.com>
üst fd3db1cf
......@@ -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;
......
......@@ -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());
......
......@@ -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),
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment