summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/find
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2019-01-16 18:06:21 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2019-01-17 15:54:56 +0000
commit616e19ff9e91a9ce8a1ee379553f9325beed035d (patch)
tree95ec85f7d1993fae787e2668434df8ea1f13deac /src/plugins/coreplugin/find
parent710e57a628c90259297150ab3a0ac28e315ca1af (diff)
downloadqt-creator-616e19ff9e91a9ce8a1ee379553f9325beed035d.tar.gz
Fix warning: "Missing emit keyword on signal call"
[-Wclazy-incorrect-emit] Change-Id: I93bdc6e23cdaccf35c9899ae16870ccc65a54f80 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/find')
-rw-r--r--src/plugins/coreplugin/find/searchresulttreemodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/coreplugin/find/searchresulttreemodel.cpp b/src/plugins/coreplugin/find/searchresulttreemodel.cpp
index bd9f482d20..150e9dcc09 100644
--- a/src/plugins/coreplugin/find/searchresulttreemodel.cpp
+++ b/src/plugins/coreplugin/find/searchresulttreemodel.cpp
@@ -71,10 +71,10 @@ void SearchResultTreeModel::setShowReplaceUI(bool show)
void SearchResultTreeModel::setTextEditorFont(const QFont &font, const SearchResultColor &color)
{
- layoutAboutToBeChanged();
+ emit layoutAboutToBeChanged();
m_textEditorFont = font;
m_color = color;
- layoutChanged();
+ emit layoutChanged();
}
Qt::ItemFlags SearchResultTreeModel::flags(const QModelIndex &idx) const
@@ -355,7 +355,7 @@ void SearchResultTreeModel::addResultsToCurrentParent(const QList<SearchResultIt
existingItem->setGenerated(false);
existingItem->item = item;
QModelIndex itemIndex = index(insertionIndex, 0, m_currentIndex);
- dataChanged(itemIndex, itemIndex);
+ emit dataChanged(itemIndex, itemIndex);
} else {
beginInsertRows(m_currentIndex, insertionIndex, insertionIndex);
m_currentParent->insertChild(insertionIndex, item);
@@ -363,7 +363,7 @@ void SearchResultTreeModel::addResultsToCurrentParent(const QList<SearchResultIt
}
}
}
- dataChanged(m_currentIndex, m_currentIndex); // Make sure that the number after the file name gets updated
+ emit dataChanged(m_currentIndex, m_currentIndex); // Make sure that the number after the file name gets updated
}
static bool lessThanByPath(const SearchResultItem &a, const SearchResultItem &b)