]> git.lyx.org Git - features.git/commitdiff
Use underline in (+ bold) for char match in layout
authorScott Kostyshak <skostysh@lyx.org>
Tue, 23 Oct 2018 01:16:56 +0000 (21:16 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 23 Oct 2018 01:16:56 +0000 (21:16 -0400)
When showing the match characters in, e.g., the layout box, we now
underline (in addition to bold) the matched characters. This makes
the matched characters stand out even more.

See 4b716dd6 and the following ML thread:

  https://www.mail-archive.com/search?l=mid&q=20181019155649.dqqk6u25wdcdimrj%40barna

src/frontends/qt4/CategorizedCombo.cpp
src/frontends/qt4/LayoutBox.cpp

index 60d6ba98f06d37e4461103efdb276f645a6980f7..89b28cd3bd9eb84dfb31593ea45ae3c09494b8b3 100644 (file)
@@ -270,7 +270,7 @@ QString CCItemDelegate::underlineFilter(QString const & s) const
                return s;
        QString r(s);
        QRegExp pattern(charFilterRegExpC(f));
-       r.replace(pattern, "<b>\\1</b>");
+       r.replace(pattern, "<u><b>\\1</b></u>");
        return r;
 }
 
index 528e4d06ab9adabe4388c1e4ce4cca82c7da77e1..7d0cfd666f3f1696cf80ae5c8e03ebd8dff6dcc2 100644 (file)
@@ -301,7 +301,7 @@ QString LayoutItemDelegate::underlineFilter(QString const & s) const
                return s;
        QString r(s);
        QRegExp pattern(charFilterRegExpC(f));
-       r.replace(pattern, "<b>\\1</b>");
+       r.replace(pattern, "<u><b>\\1</b></u>");
        return r;
 }