From 7ea6c6c84b96eb74015d82bef857c6d5370ba4ad Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 18 Dec 2024 16:21:07 +0300 Subject: [PATCH] Fixed width of username label with button for QR in profiles. --- Telegram/SourceFiles/info/profile/info_profile_actions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index ff9eb7707..514301799 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -1241,9 +1241,9 @@ object_ptr DetailsFiller::setupInfo() { int rightSkip) { const auto parent = label->parentWidget(); rpl::combine( - result->widthValue(), + label->geometryValue(), button->sizeValue() - ) | rpl::start_with_next([=](int, QSize buttonSize) { + ) | rpl::start_with_next([=](const QRect&, const QSize &buttonSize) { const auto s = parent->size(); button->moveToRight( rightSkip,