Merge branch 'ukss-dev' into 'ukss-dev'

结果列表添加tooltips.

See merge request kylin-desktop/ukui-search!320
This commit is contained in:
纪笑旭 2022-05-25 01:10:04 +00:00
commit 6d060e2c0b
3 changed files with 9 additions and 0 deletions

View File

@ -60,6 +60,9 @@ QVariant BestListModel::data(const QModelIndex &index, int role) const
case Qt::DisplayRole: {
return m_item->m_result_info_list.at(index.row()).name;
}
case Qt::ToolTipRole: {
return m_item->m_result_info_list.at(index.row()).name;
}
default:
return QVariant();
}

View File

@ -63,6 +63,9 @@ QVariant SearchResultModel::data(const QModelIndex &index, int role) const
case Qt::DisplayRole: {
return m_item->m_result_info_list.at(index.row()).name;
}
case Qt::ToolTipRole: {
return m_item->m_result_info_list.at(index.row()).name;
}
default:
return QVariant();
}

View File

@ -63,6 +63,9 @@ QVariant WebSearchModel::data(const QModelIndex &index, int role) const
case Qt::DisplayRole: {
return m_item->m_result_info_list.at(index.row()).name;
}
case Qt::ToolTipRole: {
return m_item->m_result_info_list.at(index.row()).name;
}
default:
return QVariant();
}