forked from openkylin/ukui-search
Remove some annoying qDebug.
This commit is contained in:
parent
66a8df1a51
commit
f67f29f872
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue