forked from openkylin/ukui-search
Update changelog.
This commit is contained in:
parent
e5638c75ae
commit
1fd2263ac3
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue