diff --git a/Telegram/SourceFiles/boxes/edit_caption_box.cpp b/Telegram/SourceFiles/boxes/edit_caption_box.cpp index 015f1606f..8df675039 100644 --- a/Telegram/SourceFiles/boxes/edit_caption_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_caption_box.cpp @@ -531,7 +531,7 @@ void EditCaptionBox::emojiFilterForGeometry(not_null event) { void EditCaptionBox::updateEmojiPanelGeometry() { const auto parent = _emojiPanel->parentWidget(); - const auto global = _emojiToggle->mapToGlobal({ 0, 0 }); + const auto global = _emojiToggle->mapToGlobal(QPoint()); const auto local = parent->mapFromGlobal(global); _emojiPanel->moveBottomRight( local.y(), diff --git a/Telegram/SourceFiles/boxes/language_box.cpp b/Telegram/SourceFiles/boxes/language_box.cpp index 110787f3b..927a41cb2 100644 --- a/Telegram/SourceFiles/boxes/language_box.cpp +++ b/Telegram/SourceFiles/boxes/language_box.cpp @@ -970,8 +970,8 @@ void Content::setupContent( const auto selectedCoords = [=] { const auto coords = [=](Rows *rows, int index) { const auto result = rows->rowScrollRequest(index); - const auto shift = rows->mapToGlobal({ 0, 0 }).y() - - mapToGlobal({ 0, 0 }).y(); + const auto shift = rows->mapToGlobal(QPoint()).y() + - mapToGlobal(QPoint()).y(); return Ui::ScrollToRequest( result.ymin + shift, result.ymax + shift); diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index 1dd0331fb..d293438c0 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -768,7 +768,7 @@ void SendFilesBox::emojiFilterForGeometry(not_null event) { void SendFilesBox::updateEmojiPanelGeometry() { const auto parent = _emojiPanel->parentWidget(); - const auto global = _emojiToggle->mapToGlobal({ 0, 0 }); + const auto global = _emojiToggle->mapToGlobal(QPoint()); const auto local = parent->mapFromGlobal(global); _emojiPanel->moveBottomRight( local.y(), diff --git a/Telegram/SourceFiles/info/profile/info_profile_inner_widget.cpp b/Telegram/SourceFiles/info/profile/info_profile_inner_widget.cpp index 5ac7077be..5cc0be32c 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_inner_widget.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_inner_widget.cpp @@ -121,7 +121,7 @@ object_ptr InnerWidget::setupContent( ? request.ymin : mapFromGlobal(_members->mapToGlobal({ 0, request.ymin })).y(); auto max = (request.ymin < 0) - ? mapFromGlobal(_members->mapToGlobal({ 0, 0 })).y() + ? mapFromGlobal(_members->mapToGlobal(QPoint())).y() : (request.ymax < 0) ? request.ymax : mapFromGlobal(_members->mapToGlobal({ 0, request.ymax })).y();