summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui
diff options
context:
space:
mode:
authorAttila Szűcs <attila.szucs@collabora.com>2023-05-18 10:36:38 +0200
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-10-14 21:51:22 +0200
commit5bdcd30a64ef814e63d1548ab798cc8a81944b49 (patch)
treeee05b05181b8daf87ed9312f299b89c6e9d94bfd /sw/source/uibase/utlui
parent18f35dffae44e741ea492ed5304f2d2d9d000f2d (diff)
LOK: Navigator: headings expanded by default
Called an expand_row for the first element of the contetnTree in the navigator constructor. Right now contructor is called every time when navigator is opened, it may change later. (desktop app do it only if navigator opens in a new window, not on sidebar) Change-Id: Ibe4b71e6a6ddb573269178f83c295b0c2cbd53b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151939 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit 09c40d669cac5f167fa68cb5c6ad94a6a9e2a844) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157960 Tested-by: Jenkins Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r--sw/source/uibase/utlui/navipi.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index ad89c6b1a7bb..67807c69f8bc 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -734,6 +734,12 @@ SwNavigationPI::SwNavigationPI(weld::Widget* pParent,
m_xGlobalBox->hide();
m_xGlobalToolBox->hide();
m_xGlobalTree->HideTree();
+
+ //Open Headings by default
+ auto& pTreeView = m_xContentTree->get_widget();
+ std::unique_ptr<weld::TreeIter> itEntry(pTreeView.make_iterator());
+ pTreeView.get_iter_first(*itEntry);
+ pTreeView.expand_row(*itEntry);
}
}