2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Replaced some qsl with u""_q literal.

This commit is contained in:
23rd
2022-11-30 00:46:36 +03:00
parent ad3f8e72a0
commit 4fabb3f2a2
109 changed files with 762 additions and 757 deletions

View File

@@ -482,7 +482,7 @@ SendMediaReady PrepareWallPaper(MTP::DcId dcId, const QImage &image) {
};
push("s", scaled(320));
const auto filename = qsl("wallpaper.jpg");
const auto filename = u"wallpaper.jpg"_q;
auto attributes = QVector<MTPDocumentAttribute>(
1,
MTP_documentAttributeFilename(MTP_string(filename)));
@@ -702,7 +702,7 @@ void ChatBackground::set(const Data::WallPaper &paper, QImage image) {
setPreparedAfterPaper(std::move(image));
} else {
if (Data::IsLegacy1DefaultWallPaper(_paper)) {
image.load(qsl(":/gui/art/bg_initial.jpg"));
image.load(u":/gui/art/bg_initial.jpg"_q);
const auto scale = cScale() * cIntRetinaFactor();
if (scale != 100) {
image = image.scaledToWidth(