diff options
-rw-r--r-- | include/vcl/settings.hxx | 1 | ||||
-rw-r--r-- | vcl/source/app/settings.cxx | 5 | ||||
-rw-r--r-- | vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx index 3b7e5e215104..f7be71ae5092 100644 --- a/include/vcl/settings.hxx +++ b/include/vcl/settings.hxx @@ -592,6 +592,7 @@ public: // be used. static sal_uInt16 GetColorValueSetMaximumRowCount(); + void SetListBoxPreviewDefaultLogicSize(Size const & rSize); const Size& GetListBoxPreviewDefaultPixelSize() const; // the default LineWidth for ListBox UI previews (LineStyle, LineDash, LineStartEnd). Default is 1. diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index 50dce10343b2..fccce19ad1f8 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -1981,6 +1981,11 @@ StyleSettings::operator !=( const StyleSettings& rSet ) const return !(*this == rSet); } +void StyleSettings::SetListBoxPreviewDefaultLogicSize(Size const& rSize) +{ + mxData->maListBoxPreviewDefaultLogicSize = rSize; +} + const Size& StyleSettings::GetListBoxPreviewDefaultPixelSize() const { if(0 == mxData->maListBoxPreviewDefaultPixelSize.Width() || 0 == mxData->maListBoxPreviewDefaultPixelSize.Height()) diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx index e3658172be2a..6124a31e21e4 100644 --- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx +++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx @@ -929,6 +929,7 @@ bool FileDefinitionWidgetDraw::updateSettings(AllSettings& rSettings) aStyleSet.SetTitleHeight(16); aStyleSet.SetFloatTitleHeight(12); + aStyleSet.SetListBoxPreviewDefaultLogicSize(Size(16, 16)); rSettings.SetStyleSettings(aStyleSet); |