From 8c915e6dc306e1bbf19f556d0c33627d476dd3ea Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 10 Sep 2024 01:59:53 +0300 Subject: [PATCH] Renamed FillProfileQrBox to FillPeerQrBox. --- Telegram/CMakeLists.txt | 4 ++-- Telegram/SourceFiles/info/profile/info_profile_actions.cpp | 4 ++-- .../ui/boxes/{profile_qr_box.cpp => peer_qr_box.cpp} | 4 ++-- .../SourceFiles/ui/boxes/{profile_qr_box.h => peer_qr_box.h} | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename Telegram/SourceFiles/ui/boxes/{profile_qr_box.cpp => peer_qr_box.cpp} (99%) rename Telegram/SourceFiles/ui/boxes/{profile_qr_box.h => peer_qr_box.h} (94%) diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index 0e3f062fb..83aadaeaa 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -1482,8 +1482,8 @@ PRIVATE support/support_templates.h ui/boxes/edit_invite_link_session.cpp ui/boxes/edit_invite_link_session.h - ui/boxes/profile_qr_box.cpp - ui/boxes/profile_qr_box.h + ui/boxes/peer_qr_box.cpp + ui/boxes/peer_qr_box.h ui/chat/attach/attach_item_single_file_preview.cpp ui/chat/attach/attach_item_single_file_preview.h ui/chat/attach/attach_item_single_media_preview.cpp diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index 8b219334b..93a78f942 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -51,7 +51,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "main/main_session.h" #include "menu/menu_mute.h" #include "support/support_helper.h" -#include "ui/boxes/profile_qr_box.h" +#include "ui/boxes/peer_qr_box.h" #include "ui/boxes/report_box.h" #include "ui/controls/userpic_button.h" #include "ui/painter.h" @@ -1121,7 +1121,7 @@ object_ptr DetailsFiller::setupInfo() { copyUsername->setClickedCallback([=] { if (!user->isBot()) { controller->show(Box([=](not_null box) { - Ui::FillProfileQrBox(box, user); + Ui::FillPeerQrBox(box, user); })); return false; } diff --git a/Telegram/SourceFiles/ui/boxes/profile_qr_box.cpp b/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp similarity index 99% rename from Telegram/SourceFiles/ui/boxes/profile_qr_box.cpp rename to Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp index c478c431f..192a66d57 100644 --- a/Telegram/SourceFiles/ui/boxes/profile_qr_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp @@ -5,7 +5,7 @@ the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ -#include "ui/boxes/profile_qr_box.h" +#include "ui/boxes/peer_qr_box.h" #include "core/application.h" #include "data/data_cloud_themes.h" @@ -336,7 +336,7 @@ void Paint( } // namespace -void FillProfileQrBox( +void FillPeerQrBox( not_null box, not_null peer) { const auto window = Core::App().findWindow(box); diff --git a/Telegram/SourceFiles/ui/boxes/profile_qr_box.h b/Telegram/SourceFiles/ui/boxes/peer_qr_box.h similarity index 94% rename from Telegram/SourceFiles/ui/boxes/profile_qr_box.h rename to Telegram/SourceFiles/ui/boxes/peer_qr_box.h index e942f2850..deac18665 100644 --- a/Telegram/SourceFiles/ui/boxes/profile_qr_box.h +++ b/Telegram/SourceFiles/ui/boxes/peer_qr_box.h @@ -13,7 +13,7 @@ namespace Ui { class GenericBox; -void FillProfileQrBox( +void FillPeerQrBox( not_null box, not_null peer);