QuickFindPanel: hide full top toolbar in LOK

- it is not used at all and could cause ugly blink on start

Change-Id: Ie272866182a604e8043a9fa02ec4d38d2651814a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189866
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194160
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
Szymon Kłos
2025-11-19 09:11:39 +01:00
parent cbd2e455b6
commit f1e5745eb2
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -63,6 +63,8 @@ private:
std::unique_ptr<weld::Entry> m_xSearchFindEntry;
std::unique_ptr<weld::Toolbar> m_xSearchOptionsToolbar;
std::unique_ptr<weld::Toolbar> m_xFindAndReplaceToolbar;
std::unique_ptr<ToolbarUnoDispatcher> m_xFindAndReplaceToolbarDispatch;
std::unique_ptr<weld::Box> m_xTopbar;
std::unique_ptr<weld::TreeView> m_xSearchFindsList;
std::unique_ptr<weld::Label> m_xSearchFindFoundTimesLabel;
@@ -144,6 +144,9 @@ QuickFindPanel::QuickFindPanel(weld::Widget* pParent, const uno::Reference<frame
, m_xSearchFindEntry(m_xBuilder->weld_entry(u"Find"_ustr))
, m_xSearchOptionsToolbar(m_xBuilder->weld_toolbar(u"searchoptionstoolbar"_ustr))
, m_xFindAndReplaceToolbar(m_xBuilder->weld_toolbar(u"findandreplacetoolbar"_ustr))
, m_xFindAndReplaceToolbarDispatch(
new ToolbarUnoDispatcher(*m_xFindAndReplaceToolbar, *m_xBuilder, rxFrame))
, m_xTopbar(m_xBuilder->weld_box(u"topbar"_ustr))
, m_xSearchFindsList(m_xBuilder->weld_tree_view(u"searchfinds"_ustr))
, m_xSearchFindFoundTimesLabel(m_xBuilder->weld_label("numberofsearchfinds"))
, m_pWrtShell(::GetActiveWrtShell())
@@ -159,6 +162,7 @@ QuickFindPanel::QuickFindPanel(weld::Widget* pParent, const uno::Reference<frame
// disable search options for online as still tunneled dialog
m_xSearchOptionsToolbar->set_visible(false);
m_xTopbar->set_visible(false);
}
m_nMinimumPanelWidth
= m_xBuilder->weld_widget(u"box"_ustr)->get_preferred_size().getWidth() + (6 * 2) + 6;
+1 -1
View File
@@ -28,7 +28,7 @@
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkBox">
<object class="GtkBox" id="topbar">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="spacing">2</property>