[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - include/vcl vcl/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Tue Feb 9 12:51:52 UTC 2021


 include/vcl/treelistbox.hxx     |    1 +
 vcl/source/treelist/svtabbx.cxx |    2 ++
 2 files changed, 3 insertions(+)

New commits:
commit d00cad178c8830bada68bd9d81dc0c4466160ab6
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Feb 9 09:38:58 2021 +0100
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Feb 9 13:51:19 2021 +0100

    jsdialog: single activation property for treeview
    
    Change-Id: Iaaeab7f14f1a05c38f41c4beb774a0980844fdb3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110621
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx
index 537e4abc7a8d..8301ac1d9434 100644
--- a/include/vcl/treelistbox.hxx
+++ b/include/vcl/treelistbox.hxx
@@ -733,6 +733,7 @@ public:
 
     // Make single click "activate" a row like a double-click normally does
     void            SetActivateOnSingleClick(bool bEnable) { mbActivateOnSingleClick = bEnable; }
+    bool            GetActivateOnSingleClick() { return mbActivateOnSingleClick; }
 
     // Make mouse over a row "select" a row like a single-click normally does
     void            SetHoverSelection(bool bEnable) { mbHoverSelection = bEnable; }
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx
index 4cfb34668907..6f07fe00301a 100644
--- a/vcl/source/treelist/svtabbx.cxx
+++ b/vcl/source/treelist/svtabbx.cxx
@@ -117,6 +117,8 @@ boost::property_tree::ptree SvTabListBox::DumpAsPropertyTree()
 {
     boost::property_tree::ptree aTree(SvTreeListBox::DumpAsPropertyTree());
 
+    aTree.put("singleclickactivate", GetActivateOnSingleClick());
+
     bool bCheckButtons = static_cast<int>(nTreeFlags & SvTreeFlags::CHKBTN);
     aTree.push_back(std::make_pair("entries", lcl_DumpEntryAndSiblings(First(), this, bCheckButtons)));
 


More information about the Libreoffice-commits mailing list