Commit d28c44a8 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Revert "Replace signal blocking with orphan QTreeWidgetItem"

This reverts commit 7309f240.
parent 25c39be0
......@@ -977,9 +977,8 @@ void KatePluginSearchView::matchFound(const QString &url, const QString &fName,
QStringList row;
row << i18n("Line: <b>%1</b> Column: <b>%2</b>: %3", startLine + 1, startColumn + 1, pre + QStringLiteral("<b>") + match + QStringLiteral("</b>") + post);
TreeWidgetItem *item = new TreeWidgetItem(rootFileItem(url, fName), row);
TreeWidgetItem *item = new TreeWidgetItem(static_cast<TreeWidgetItem*>(nullptr), row);
item->setData(0, ReplaceMatches::FileUrlRole, url);
item->setData(0, Qt::ToolTipRole, url);
item->setData(0, ReplaceMatches::FileNameRole, fName);
......@@ -992,7 +991,7 @@ void KatePluginSearchView::matchFound(const QString &url, const QString &fName,
item->setData(0, ReplaceMatches::EndLineRole, endLine);
item->setData(0, ReplaceMatches::EndColumnRole, endColumn);
item->setCheckState(0, Qt::Checked);
rootFileItem(url, fName)->addChild(item);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment