From 1fd2263ac3c9f5235697422c5da99417ebcd436f Mon Sep 17 00:00:00 2001 From: iaom <18504285112@163.com> Date: Wed, 7 Apr 2021 01:23:34 +0800 Subject: [PATCH] Update changelog. --- debian/changelog | 12 +++++++++++ src/model/search-item-model.cpp | 38 ++++++++++++++++----------------- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/debian/changelog b/debian/changelog index a12f4c8..12e3559 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,15 @@ +ukui-search (0.3.0+0406) v101; urgency=medium + + * Add support for '.xls', '.dot','.wps', '.pps', '.dps', '.et','.ppt'. + - 增加了对'.xls', '.dot','.wps', '.pps', '.dps', + '.et','.ppt'格式文本内容索引的支持。 + * Fix: symbolic links may cause main blocked. + - 解决了符号链接有可能导致索引卡死的bug。 + * Fix: Snippet will not be displayed correctly when file content is too short. + - 修复了当文件内容太短时,显示详情错误的问题。 + + -- zhangpengfei Tue, 06 Apr 2021 08:40:38 +0800 + ukui-search (0.3.0+0401) v101; urgency=medium * Remove qtwebengineview dependence, remove web page load function. diff --git a/src/model/search-item-model.cpp b/src/model/search-item-model.cpp index d28c14f..ecdca91 100644 --- a/src/model/search-item-model.cpp +++ b/src/model/search-item-model.cpp @@ -97,28 +97,28 @@ QVariant SearchItemModel::data(const QModelIndex &index, int role) const if(!index.isValid()) return QVariant(); switch (index.column()) { - case Icon: { - switch (role) { - case Qt::DecorationRole: { - return m_item->getIcon(index.row()); - } - default: - return QVariant(); - } + case Icon: { + switch (role) { + case Qt::DecorationRole: { + return m_item->getIcon(index.row()); } - case Name: { - switch (role) { - case Qt::DisplayRole: { - return QVariant(m_item->getName(index.row())); - } -// case Qt::ForegroundRole: { -// return QColor(50, 50, 50); -// } - default: - return QVariant(); - } + default: + return QVariant(); } } + case Name: { + switch (role) { + case Qt::DisplayRole: { + return QVariant(m_item->getName(index.row())); + } + // case Qt::ForegroundRole: { + // return QColor(50, 50, 50); + // } + default: + return QVariant(); + } + } + } return QVariant(); }