summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-06-04 11:00:39 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2020-11-30 18:19:22 +0100
commit3826d521852f408f4679837d94288d97ab13e0b4 (patch)
tree3b6093de00b3a6afd8ea1bfaec4eaef26854411f /include
parente43087375f41a1bb5676f530dfb60dfe79a3f7b2 (diff)
clarify and simplify the mapping of the sort column to model
Change-Id: I3361b0c35965133747c502c5bd81359915507ebd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95518 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106873 Tested-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/weld.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 9df013f6f849..11e33a4d0372 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -686,6 +686,8 @@ protected:
Link<const std::pair<const TreeIter&, OUString>&, bool> m_aEditingDoneHdl;
// if handler returns false, the expansion of the row is refused
Link<const TreeIter&, bool> m_aExpandingHdl;
+ // if handler returns false, the collapse of the row is refused
+ Link<const TreeIter&, bool> m_aCollapsingHdl;
Link<TreeView&, void> m_aVisibleRangeChangedHdl;
Link<TreeView&, void> m_aModelChangedHdl;
Link<const CommandEvent&, bool> m_aPopupMenuHdl;
@@ -700,6 +702,10 @@ protected:
{
return !m_aExpandingHdl.IsSet() || m_aExpandingHdl.Call(rIter);
}
+ bool signal_collapsing(const TreeIter& rIter)
+ {
+ return !m_aCollapsingHdl.IsSet() || m_aCollapsingHdl.Call(rIter);
+ }
void signal_visible_range_changed() { m_aVisibleRangeChangedHdl.Call(*this); }
void signal_model_changed() { m_aModelChangedHdl.Call(*this); }