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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Jun 8 18:21:22 UTC 2020


 include/vcl/weld.hxx          |    2 ++
 vcl/source/app/salvtables.cxx |    5 +++++
 vcl/unx/gtk3/gtk3gtkinst.cxx  |    5 +++++
 3 files changed, 12 insertions(+)

New commits:
commit c3669c8bd62ecf5eaa6b5e95289825bc11b2688a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jun 8 12:17:45 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jun 8 20:20:43 2020 +0200

    add TreeView::set_show_expanders
    
    Change-Id: Id348d1c25df57c9f18249990bd6c00bdf23dfa71
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95805
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 0705c546e69f..8655b5282a79 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -1148,6 +1148,8 @@ public:
     OUString const& get_saved_value() const { return m_sSavedValue; }
     bool get_value_changed_from_saved() const { return m_sSavedValue != get_selected_text(); }
 
+    virtual void set_show_expanders(bool bShow) = 0;
+
     // for custom rendering a cell
     void connect_custom_get_size(const Link<get_size_args, Size>& rLink) { m_aGetSizeHdl = rLink; }
     void connect_custom_render(const Link<render_args, void>& rLink) { m_aRenderHdl = rLink; }
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index a783ef39be7d..3ea87a0c0e76 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -4568,6 +4568,11 @@ public:
             m_xTreeView->SetUpdateMode(true);
     }
 
+    void set_show_expanders(bool bShow) override
+    {
+        m_xTreeView->set_property("show-expanders", OUString::boolean(bShow));
+    }
+
     virtual ~SalInstanceTreeView() override
     {
         LclHeaderTabListBox* pHeaderBox = dynamic_cast<LclHeaderTabListBox*>(m_xTreeView.get());
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 12214117ffa8..642379718e60 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -11440,6 +11440,11 @@ public:
         return signal_custom_get_size(rOutput, rId);
     }
 
+    virtual void set_show_expanders(bool bShow) override
+    {
+        gtk_tree_view_set_show_expanders(m_pTreeView, bShow);
+    }
+
     virtual ~GtkInstanceTreeView() override
     {
         if (m_pChangeEvent)


More information about the Libreoffice-commits mailing list