Remove some annoying qDebug.

This commit is contained in:
iaom 2021-10-29 16:03:24 +08:00
parent 66a8df1a51
commit f67f29f872
1 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ QString BestListModel::getKey(const QModelIndex &index)
void BestListModel::appendInfo(const QString &pluginId, const SearchPluginIface::ResultInfo &info) void BestListModel::appendInfo(const QString &pluginId, const SearchPluginIface::ResultInfo &info)
{ {
if (m_plugin_action_key_list.contains(info.actionKey)) { if (m_plugin_action_key_list.contains(info.actionKey)) {
qDebug() << "plugin ID:" << pluginId << "name:" << info.name << "action key:" << info.actionKey << "is same with pre-result!"; // qDebug() << "plugin ID:" << pluginId << "name:" << info.name << "action key:" << info.actionKey << "is same with pre-result!";
return; return;
} else { } else {
m_plugin_action_key_list.append(info.actionKey); m_plugin_action_key_list.append(info.actionKey);
@ -115,14 +115,14 @@ void BestListModel::appendInfo(const QString &pluginId, const SearchPluginIface:
if (info.name == m_item->m_result_info_list.at(m_plugin_id_list.lastIndexOf(pluginId)).name) { if (info.name == m_item->m_result_info_list.at(m_plugin_id_list.lastIndexOf(pluginId)).name) {
return; return;
} }
qDebug()<<"plugin ID:"<<pluginId<<"Repalce result. name ="<<info.name; // qDebug()<<"plugin ID:"<<pluginId<<"Repalce result. name ="<<info.name;
this->beginResetModel(); this->beginResetModel();
m_item->m_result_info_list.replace(m_plugin_id_list.lastIndexOf(pluginId), info); m_item->m_result_info_list.replace(m_plugin_id_list.lastIndexOf(pluginId), info);
this->endResetModel(); this->endResetModel();
return; return;
} }
this->beginResetModel(); this->beginResetModel();
qDebug()<<"plugin ID:"<<pluginId<<"Got a result. name ="<<info.name; // qDebug()<<"plugin ID:"<<pluginId<<"Got a result. name ="<<info.name;
m_plugin_id_list.append(pluginId); m_plugin_id_list.append(pluginId);
m_item->m_result_info_list.append(info); m_item->m_result_info_list.append(info);
QVector<SearchPluginIface::ResultInfo> result_info_list_tmp; QVector<SearchPluginIface::ResultInfo> result_info_list_tmp;