https://bugs.documentfoundation.org/show_bug.cgi?id=171142

--- Comment #19 from Jim Raykowski <[email protected]> ---

(In reply to Heiko Tietze from comment #18)
> Jim, is it easy to implement that page separator in the quick search reject
> any focus? The cursor up/down should jump over to the next item and the
> mouse just do nothing.

Sort of easy to make the requested behavior work for VCL plugins gen and
qt5/kf5, but not gtk3/4.

Here is a diff showing changes that make it work for gen and qt5/kf5, but not
gtk3/4 :(

--- sw/source/uibase/sidebar/QuickFindPanel.cxx
+++ sw/source/uibase/sidebar/QuickFindPanel.cxx
@@ -651,7 +651,8 @@ void QuickFindPanel::FillSearchFindsList()
                 {
                     sPageEntry = u"-"_ustr + SwResId(ST_PGE) + u" "_ustr +
OUString::number(nPage);
                 }
-                m_xSearchFindsList->append(sPageEntry, sPageEntry);
+                m_xSearchFindsList->append_separator(sPageEntry);
+                m_xSearchFindsList->set_id(m_xSearchFindsList->n_children() -
1, sPageEntry);
             }

             auto nCount = nMarkIndex - nStartIndex;
--- vcl/source/treelist/svlbitm.cxx
+++ vcl/source/treelist/svlbitm.cxx
@@ -192,7 +192,7 @@ void SvLBoxString::Paint(
     const SvViewDataEntry* /*pView*/, const SvTreeListEntry& rEntry)
 {
     DrawTextFlags nStyle = (rDev.IsEnabled() && !mbDisabled) ?
DrawTextFlags::NONE : DrawTextFlags::Disable;
-    if (rEntry.IsSeparator())
+    if (!mbCustom && rEntry.IsSeparator())
     {
         Point aStartPos(0, rPos.Y() - 2);
         tools::Rectangle aRegion(aStartPos, Size(rDev.GetSizePixel().Width(),
4));

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to