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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user