[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - include/vcl vcl/source vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Nov 30 17:18:54 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 4366f2466109085d1eaffec311b9397eebecf48b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jun 8 12:17:45 2020 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Nov 30 18:18:21 2020 +0100
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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106871
Tested-by: Szymon Kłos <szymon.klos at collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 43b929f99a54..9df013f6f849 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -987,6 +987,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 dnd
virtual bool get_dest_row_at_pos(const Point& rPos, weld::TreeIter* pResult) = 0;
// for dragging and dropping between TreeViews, return the active source
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 8a9916adc255..bd620b95d39a 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -4404,6 +4404,11 @@ public:
return g_DragSource;
}
+ 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 f1e3a731bf15..62892750270b 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -9893,6 +9893,11 @@ public:
gtk_tree_view_set_drag_dest_row(m_pTreeView, nullptr, GTK_TREE_VIEW_DROP_BEFORE);
}
+ 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