Commit a486b374 authored by Vishesh Handa's avatar Vishesh Handa
Browse files

QueryBuilder: The core query builder now uses $ instead of %

parent ec238203
......@@ -156,7 +156,7 @@ void QueryBuilder::proposalSelected(CompletionProposal *proposal,
replacement += QLatin1Char(' ');
}
if (part.at(0) == QLatin1Char('%')) {
if (part.at(0) == QLatin1Char('$')) {
cursor_offset = replacement.length() + value.length();
replacement += value;
} else {
......
......@@ -66,7 +66,7 @@ QWidget *QueryBuilderCompleter::widgetForProposal(CompletionProposal *proposal,
proposal_text += QLatin1Char(' ');
}
if (part.at(0) == QLatin1Char('%')) {
if (part.at(0) == QLatin1Char('$')) {
proposal_text += QLatin1String("<em>");
if (!value.isEmpty()) {
......@@ -142,7 +142,7 @@ void QueryBuilderCompleter::addProposal(CompletionProposal *proposal,
// If the term the user is entering is a placeholder, pre-fill it
if (!prefix.isEmpty() &&
proposal->lastMatchedPart() < pattern.size() &&
pattern.at(proposal->lastMatchedPart()).at(0) == QLatin1Char('%'))
pattern.at(proposal->lastMatchedPart()).at(0) == QLatin1Char('$'))
{
switch (proposal->type()) {
#if 0
......
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