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

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Wed Mar 3 11:35:56 UTC 2021


 vcl/inc/jsdialog/jsdialogbuilder.hxx |    2 ++
 vcl/jsdialog/jsdialogbuilder.cxx     |    6 ++++++
 2 files changed, 8 insertions(+)

New commits:
commit 7fd50e241a73a612a368873a0002a1ba8d6bcd49
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Mon Mar 1 10:01:42 2021 +0100
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Wed Mar 3 12:35:24 2021 +0100

    jsdialog: update on treeview clear
    
    Change-Id: I4152e7581ae9172e77474c7f62bd42351636793e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111733
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/vcl/inc/jsdialog/jsdialogbuilder.hxx b/vcl/inc/jsdialog/jsdialogbuilder.hxx
index 9bfdb11c2332..cb4a46ada304 100644
--- a/vcl/inc/jsdialog/jsdialogbuilder.hxx
+++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx
@@ -491,6 +491,8 @@ public:
     virtual void remove(int pos) override;
     virtual void remove(const weld::TreeIter& rIter) override;
 
+    virtual void clear() override;
+
     void drag_start();
     void drag_end();
 };
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index 6bcf259423be..518a1ca25cf3 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -1131,6 +1131,12 @@ void JSTreeView::remove(const weld::TreeIter& rIter)
     sendUpdate();
 }
 
+void JSTreeView::clear()
+{
+    SalInstanceTreeView::clear();
+    sendUpdate();
+}
+
 void JSTreeView::expand_row(const weld::TreeIter& rIter)
 {
     SalInstanceTreeView::expand_row(rIter);


More information about the Libreoffice-commits mailing list