Moved ConfirmPhoneBox to td_ui.
This commit is contained in:
parent
80461bd9fe
commit
25f6bea66e
|
@ -193,8 +193,6 @@ PRIVATE
|
||||||
boxes/background_preview_box.h
|
boxes/background_preview_box.h
|
||||||
boxes/change_phone_box.cpp
|
boxes/change_phone_box.cpp
|
||||||
boxes/change_phone_box.h
|
boxes/change_phone_box.h
|
||||||
boxes/confirm_phone_box.cpp
|
|
||||||
boxes/confirm_phone_box.h
|
|
||||||
boxes/connection_box.cpp
|
boxes/connection_box.cpp
|
||||||
boxes/connection_box.h
|
boxes/connection_box.h
|
||||||
boxes/create_poll_box.cpp
|
boxes/create_poll_box.cpp
|
||||||
|
|
|
@ -8,10 +8,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "api/api_confirm_phone.h"
|
#include "api/api_confirm_phone.h"
|
||||||
|
|
||||||
#include "apiwrap.h"
|
#include "apiwrap.h"
|
||||||
#include "ui/boxes/confirm_box.h"
|
|
||||||
#include "boxes/confirm_phone_box.h"
|
|
||||||
#include "lang/lang_keys.h"
|
#include "lang/lang_keys.h"
|
||||||
#include "main/main_session.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 "ui/text/format_values.h" // Ui::FormatPhone
|
||||||
#include "window/window_session_controller.h"
|
#include "window/window_session_controller.h"
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ void ConfirmPhone::resolve(
|
||||||
}
|
}
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}();
|
}();
|
||||||
auto box = Box<ConfirmPhoneBox>(
|
auto box = Box<Ui::ConfirmPhoneBox>(
|
||||||
phone,
|
phone,
|
||||||
sentCodeLength,
|
sentCodeLength,
|
||||||
timeout);
|
timeout);
|
||||||
|
|
|
@ -18,7 +18,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "core/update_checker.h"
|
#include "core/update_checker.h"
|
||||||
#include "core/application.h"
|
#include "core/application.h"
|
||||||
#include "core/click_handler_types.h"
|
#include "core/click_handler_types.h"
|
||||||
#include "boxes/confirm_phone_box.h"
|
|
||||||
#include "boxes/background_preview_box.h"
|
#include "boxes/background_preview_box.h"
|
||||||
#include "ui/boxes/confirm_box.h"
|
#include "ui/boxes/confirm_box.h"
|
||||||
#include "boxes/share_box.h"
|
#include "boxes/share_box.h"
|
||||||
|
|
|
@ -5,7 +5,7 @@ the official desktop application for the Telegram messaging service.
|
||||||
For license and copyright information please follow this link:
|
For license and copyright information please follow this link:
|
||||||
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
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/boxes/confirm_box.h"
|
||||||
#include "ui/widgets/buttons.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_layers.h"
|
||||||
#include "styles/style_boxes.h"
|
#include "styles/style_boxes.h"
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
|
||||||
ConfirmPhoneBox::ConfirmPhoneBox(
|
ConfirmPhoneBox::ConfirmPhoneBox(
|
||||||
QWidget*,
|
QWidget*,
|
||||||
const QString &phone,
|
const QString &phone,
|
||||||
|
@ -161,3 +163,5 @@ void ConfirmPhoneBox::showServerError(const QString &text) {
|
||||||
QString ConfirmPhoneBox::getPhone() const {
|
QString ConfirmPhoneBox::getPhone() const {
|
||||||
return _phone;
|
return _phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace Ui
|
|
@ -11,8 +11,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "ui/widgets/sent_code_field.h"
|
#include "ui/widgets/sent_code_field.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
||||||
class FlatLabel;
|
class FlatLabel;
|
||||||
} // namespace Ui
|
|
||||||
|
|
||||||
class ConfirmPhoneBox final : public Ui::BoxContent {
|
class ConfirmPhoneBox final : public Ui::BoxContent {
|
||||||
public:
|
public:
|
||||||
|
@ -62,3 +62,5 @@ private:
|
||||||
rpl::event_stream<> _resendRequests;
|
rpl::event_stream<> _resendRequests;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace Ui
|
|
@ -110,6 +110,8 @@ PRIVATE
|
||||||
ui/boxes/choose_date_time.h
|
ui/boxes/choose_date_time.h
|
||||||
ui/boxes/confirm_box.cpp
|
ui/boxes/confirm_box.cpp
|
||||||
ui/boxes/confirm_box.h
|
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.cpp
|
||||||
ui/boxes/country_select_box.h
|
ui/boxes/country_select_box.h
|
||||||
ui/boxes/edit_invite_link.cpp
|
ui/boxes/edit_invite_link.cpp
|
||||||
|
|
Loading…
Reference in New Issue