[Libreoffice-commits] core.git: include/vcl vcl/source

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 1 06:03:17 UTC 2019


 include/vcl/settings.hxx                    |    1 +
 vcl/source/app/settings.cxx                 |    5 +++++
 vcl/source/gdi/FileDefinitionWidgetDraw.cxx |    1 +
 3 files changed, 7 insertions(+)

New commits:
commit c2108dd683ec7ff0bcaac8456c6cce9610a2993a
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Mon Apr 1 13:08:02 2019 +0900
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Mon Apr 1 08:02:55 2019 +0200

    tdf#124150 increase size of color valueset widget
    
    Size of the color value set can be set through settings, but there
    was no setter. Added a setter and set it to a bigger value so it
    is better suited for touch.
    
    Change-Id: I8c9b17f7379c4702b0faf7847f1e6292cd89b0d0
    Reviewed-on: https://gerrit.libreoffice.org/70031
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

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);
 


More information about the Libreoffice-commits mailing list