vcl/source/treelist/iconview.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
New commits: commit 82ddd9855dffdf1732b4612ad5468f4959be6e25 Author: Parth Raiyani <[email protected]> AuthorDate: Mon Nov 24 10:03:59 2025 +0530 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Feb 26 13:57:28 2026 +0100 ui: update mnemonic-widget property for shadows in borderpage.ui vcl: add selection mode json property in IconView's DumpAsPropertyTree Change-Id: Ife3b79f2d97dd9b496bf8146a48bc2f7f4a6775b Signed-off-by: Parth Raiyani <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194389 Reviewed-by: Szymon Kłos <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200357 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/vcl/source/treelist/iconview.cxx b/vcl/source/treelist/iconview.cxx index f6005b2e8ede..f6320eaa6c69 100644 --- a/vcl/source/treelist/iconview.cxx +++ b/vcl/source/treelist/iconview.cxx @@ -372,11 +372,28 @@ void IconView::DumpEntryAndSiblings(tools::JsonWriter& rJsonWriter, SvTreeListEn } } +namespace +{ +std::string_view selectionModeToString(SelectionMode eMode) +{ + switch (eMode) + { + case SelectionMode::Single: + return "single"; + case SelectionMode::Multiple: + return "multiple"; + default: + return "single"; + } +} +} + void IconView::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) { SvTreeListBox::DumpAsPropertyTree(rJsonWriter); rJsonWriter.put("type", "iconview"); rJsonWriter.put("singleclickactivate", GetActivateOnSingleClick()); + rJsonWriter.put("selectionmode", selectionModeToString(GetSelectionMode())); rJsonWriter.put("textWithIconEnabled", IsTextColumnEnabled()); auto aNode = rJsonWriter.startArray("entries"); DumpEntryAndSiblings(rJsonWriter, First());
