diff --git a/frontend/model/best-list-model.cpp b/frontend/model/best-list-model.cpp index 078d7be..1860191 100644 --- a/frontend/model/best-list-model.cpp +++ b/frontend/model/best-list-model.cpp @@ -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(); } diff --git a/frontend/model/search-result-model.cpp b/frontend/model/search-result-model.cpp index 1b976ff..51a3484 100644 --- a/frontend/model/search-result-model.cpp +++ b/frontend/model/search-result-model.cpp @@ -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(); } diff --git a/frontend/model/web-search-model.cpp b/frontend/model/web-search-model.cpp index 43aec61..8efcdd1 100644 --- a/frontend/model/web-search-model.cpp +++ b/frontend/model/web-search-model.cpp @@ -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(); }