From 20cfb617034e95df8b82c56f8941f5ff169e44eb Mon Sep 17 00:00:00 2001 From: iaom Date: Fri, 15 Jul 2022 11:47:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=AD=A3=E5=88=99=E8=A1=A8?= =?UTF-8?q?=E8=BE=BE=E5=BC=8F=E8=BD=AC=E4=B9=89=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=81=B6=E7=8E=B0=E7=9A=84=E6=90=9C=E7=B4=A2UI=E5=8D=A1?= =?UTF-8?q?=E6=AD=BB=E7=8E=B0=E8=B1=A1=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/patches/0007-UI.patch | 29 +++++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 30 insertions(+) create mode 100644 debian/patches/0007-UI.patch diff --git a/debian/patches/0007-UI.patch b/debian/patches/0007-UI.patch new file mode 100644 index 0000000..9d6690d --- /dev/null +++ b/debian/patches/0007-UI.patch @@ -0,0 +1,29 @@ +From: iaom +Date: Fri, 15 Jul 2022 11:47:39 +0800 +Subject: =?utf-8?b?5aKe5Yqg5q2j5YiZ6KGo6L6+5byP6L2s5LmJ77yM6YG/5YWN5YG2546w?= + =?utf-8?b?55qE5pCc57SiVUnljaHmrbvnjrDosaHjgII=?= + +--- + frontend/view/result-view-delegate.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/frontend/view/result-view-delegate.cpp b/frontend/view/result-view-delegate.cpp +index 17e3346..c9095a3 100644 +--- a/frontend/view/result-view-delegate.cpp ++++ b/frontend/view/result-view-delegate.cpp +@@ -228,6 +228,7 @@ void ResultItemStyle::drawControl(QStyle::ControlElement element, const QStyleOp + HightLightEffectHelper::HightLightEffectHelper(QObject *parent) : QSyntaxHighlighter(parent) + { + m_expression.setCaseSensitivity(Qt::CaseInsensitive); ++ m_expression.setPatternSyntax(QRegExp::FixedString); + } + + void HightLightEffectHelper::setExpression(const QString &text) +@@ -243,7 +244,6 @@ void HightLightEffectHelper::setTextColor(const QBrush &brush) + void HightLightEffectHelper::highlightBlock(const QString &text) + { + setFormat(0, text.length(), m_textCharFormat); +- + m_textCharFormat.setFontWeight(QFont::Bold); + int index = text.indexOf(m_expression); + while(index >= 0){ diff --git a/debian/patches/series b/debian/patches/series index b3855d0..7bc269f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ 0004-4-UI-Add-a-mainWindow-switch-dbus-interface.-Fix-125.patch 0005-Fix-bug-127732-bug-127792-the-ukui-search-do-not-qui.patch 0006-copyright.patch +0007-UI.patch