2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Replaced some qstr with u""_q literal.

This commit is contained in:
23rd
2022-11-27 00:20:17 +03:00
parent 22dc7023fc
commit 2acedca6b7
99 changed files with 477 additions and 480 deletions

View File

@@ -129,7 +129,7 @@ void Inner::prepareRow(Row &row) {
row.question.setText(st::autocompleteRowTitle, row.data.question);
row.keys.setText(
st::autocompleteRowKeys,
row.data.originalKeys.join(qstr(", ")));
row.data.originalKeys.join(u", "_q));
row.answer.setText(st::autocompleteRowAnswer, row.data.value);
}
@@ -470,7 +470,7 @@ void Autocomplete::setupContent() {
}
void Autocomplete::submitValue(const QString &value) {
const auto prefix = qstr("contact:");
const auto prefix = u"contact:"_q;
if (value.startsWith(prefix)) {
const auto line = value.indexOf('\n');
const auto text = (line > 0) ? value.mid(line + 1) : QString();