forked from openkylin/ukui-search
Merge branch 'ukss-dev' into 'ukss-dev'
结果列表添加tooltips. See merge request kylin-desktop/ukui-search!320
This commit is contained in:
commit
6d060e2c0b
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue