[Libreoffice-commits] core.git: sfx2/source

Gülşah Köse (via logerrit) logerrit at kemper.freedesktop.org
Fri May 14 06:59:46 UTC 2021


 sfx2/source/devtools/ObjectInspectorTreeHandler.cxx |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

New commits:
commit b1099568ffe9ad199c3bf8f279bbac4d7ba445bb
Author:     Gülşah Köse <gulsah.kose at collabora.com>
AuthorDate: Wed May 12 10:09:16 2021 +0300
Commit:     Gülşah Köse <gulsah.kose at collabora.com>
CommitDate: Fri May 14 08:59:08 2021 +0200

    tdf#141458 Set inital column width of Properties and Methods tabs.
    
    Change-Id: I60a51de849d332bbf4579eac3d60834f17cb4fb8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115482
    Tested-by: Jenkins
    Reviewed-by: Gülşah Köse <gulsah.kose at collabora.com>

diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index de81bd7df432..4915917ee087 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -966,6 +966,24 @@ ObjectInspectorTreeHandler::ObjectInspectorTreeHandler(
     mpObjectInspectorWidgets->mpNotebook->connect_enter_page(
         LINK(this, ObjectInspectorTreeHandler, NotebookEnterPage));
 
+    auto nPropertiesDigitWidth
+        = mpObjectInspectorWidgets->mpPropertiesTreeView->get_approximate_digit_width();
+    std::vector<int> aPropertiesWidths;
+    aPropertiesWidths.push_back(nPropertiesDigitWidth * 30);
+    aPropertiesWidths.push_back(nPropertiesDigitWidth * 30);
+    aPropertiesWidths.push_back(nPropertiesDigitWidth * 30);
+    aPropertiesWidths.push_back(nPropertiesDigitWidth * 30);
+    mpObjectInspectorWidgets->mpPropertiesTreeView->set_column_fixed_widths(aPropertiesWidths);
+
+    auto nMethodsDigitWidth
+        = mpObjectInspectorWidgets->mpMethodsTreeView->get_approximate_digit_width();
+    std::vector<int> aMethodsWidths;
+    aMethodsWidths.push_back(nMethodsDigitWidth * 30);
+    aMethodsWidths.push_back(nMethodsDigitWidth * 15);
+    aMethodsWidths.push_back(nMethodsDigitWidth * 30);
+    aMethodsWidths.push_back(nMethodsDigitWidth * 50);
+    mpObjectInspectorWidgets->mpMethodsTreeView->set_column_fixed_widths(aMethodsWidths);
+
     pObjectInspectorWidgets->mpPaned->set_position(160);
 }
 


More information about the Libreoffice-commits mailing list