Change searchbar background color to red(ish) when no match found

This commit is contained in:
Christian Surlykke
2013-01-17 17:02:51 +01:00
parent e67682a663
commit c3d72a638a
4 changed files with 34 additions and 8 deletions
+7 -6
View File
@@ -48,12 +48,13 @@ void HistorySearch::search() {
} else {
found = search(0, 0, m_startColumn, m_startLine) || search(m_startColumn, m_startLine, -1, m_emulation->lineCount());
}
}
if (found) {
emit matchFound(m_foundStartColumn, m_foundStartLine, m_foundEndColumn, m_foundEndLine);
} else {
emit noMatchFound();
if (found) {
emit matchFound(m_foundStartColumn, m_foundStartLine, m_foundEndColumn, m_foundEndLine);
}
else {
emit noMatchFound();
}
}
deleteLater();