Merge branch '0330-dev' into 'main'

Update changelog.

See merge request kylin-desktop/ukui-search!8
This commit is contained in:
Zihao Zhang 2021-04-07 14:30:51 +00:00
commit 948fd1b5e3
2 changed files with 31 additions and 19 deletions

12
debian/changelog vendored
View File

@ -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 <zhangpengfei@kylinos.cn> 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.

View File

@ -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();
}