Moved ConfirmPhoneBox to td_ui.

This commit is contained in:
23rd 2021-10-19 01:43:50 +03:00
parent 80461bd9fe
commit 25f6bea66e
6 changed files with 13 additions and 8 deletions

View File

@ -193,8 +193,6 @@ PRIVATE
boxes/background_preview_box.h
boxes/change_phone_box.cpp
boxes/change_phone_box.h
boxes/confirm_phone_box.cpp
boxes/confirm_phone_box.h
boxes/connection_box.cpp
boxes/connection_box.h
boxes/create_poll_box.cpp

View File

@ -8,10 +8,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "api/api_confirm_phone.h"
#include "apiwrap.h"
#include "ui/boxes/confirm_box.h"
#include "boxes/confirm_phone_box.h"
#include "lang/lang_keys.h"
#include "main/main_session.h"
#include "ui/boxes/confirm_box.h"
#include "ui/boxes/confirm_phone_box.h"
#include "ui/text/format_values.h" // Ui::FormatPhone
#include "window/window_session_controller.h"
@ -56,7 +56,7 @@ void ConfirmPhone::resolve(
}
return std::nullopt;
}();
auto box = Box<ConfirmPhoneBox>(
auto box = Box<Ui::ConfirmPhoneBox>(
phone,
sentCodeLength,
timeout);

View File

@ -18,7 +18,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/update_checker.h"
#include "core/application.h"
#include "core/click_handler_types.h"
#include "boxes/confirm_phone_box.h"
#include "boxes/background_preview_box.h"
#include "ui/boxes/confirm_box.h"
#include "boxes/share_box.h"

View File

@ -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 "boxes/confirm_phone_box.h"
#include "ui/boxes/confirm_phone_box.h"
#include "ui/boxes/confirm_box.h"
#include "ui/widgets/buttons.h"
@ -16,6 +16,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "styles/style_layers.h"
#include "styles/style_boxes.h"
namespace Ui {
ConfirmPhoneBox::ConfirmPhoneBox(
QWidget*,
const QString &phone,
@ -161,3 +163,5 @@ void ConfirmPhoneBox::showServerError(const QString &text) {
QString ConfirmPhoneBox::getPhone() const {
return _phone;
}
} // namespace Ui

View File

@ -11,8 +11,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/widgets/sent_code_field.h"
namespace Ui {
class FlatLabel;
} // namespace Ui
class ConfirmPhoneBox final : public Ui::BoxContent {
public:
@ -62,3 +62,5 @@ private:
rpl::event_stream<> _resendRequests;
};
} // namespace Ui

View File

@ -110,6 +110,8 @@ PRIVATE
ui/boxes/choose_date_time.h
ui/boxes/confirm_box.cpp
ui/boxes/confirm_box.h
ui/boxes/confirm_phone_box.cpp
ui/boxes/confirm_phone_box.h
ui/boxes/country_select_box.cpp
ui/boxes/country_select_box.h
ui/boxes/edit_invite_link.cpp