[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 Feb 10 09:15:35 UTC 2021


 vcl/inc/jsdialog/jsdialogbuilder.hxx |    4 ++++
 vcl/jsdialog/jsdialogbuilder.cxx     |   12 ++++++++++++
 2 files changed, 16 insertions(+)

New commits:
commit bd4b1697496daa39d8ecfe034d707a89902dc07e
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Feb 10 08:04:06 2021 +0100
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Feb 10 10:14:57 2021 +0100

    jsdialog: update on treeview item remove
    
    Change-Id: I36b07284b18d3eda184fd6c3f186763d1265d2a6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110665
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/vcl/inc/jsdialog/jsdialogbuilder.hxx b/vcl/inc/jsdialog/jsdialogbuilder.hxx
index 0f3fddc0d69d..9bfdb11c2332 100644
--- a/vcl/inc/jsdialog/jsdialogbuilder.hxx
+++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx
@@ -487,6 +487,10 @@ public:
     virtual void expand_row(const weld::TreeIter& rIter) override;
     virtual void collapse_row(const weld::TreeIter& rIter) override;
 
+    using SalInstanceTreeView::remove;
+    virtual void remove(int pos) override;
+    virtual void remove(const weld::TreeIter& rIter) override;
+
     void drag_start();
     void drag_end();
 };
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index e1156bc88c78..484d95d64967 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -1118,6 +1118,18 @@ void JSTreeView::set_text(const weld::TreeIter& rIter, const OUString& rStr, int
     sendUpdate();
 }
 
+void JSTreeView::remove(int pos)
+{
+    SalInstanceTreeView::remove(pos);
+    sendUpdate();
+}
+
+void JSTreeView::remove(const weld::TreeIter& rIter)
+{
+    SalInstanceTreeView::remove(rIter);
+    sendUpdate();
+}
+
 void JSTreeView::expand_row(const weld::TreeIter& rIter)
 {
     SalInstanceTreeView::expand_row(rIter);


More information about the Libreoffice-commits mailing list