2014-05-30 08:53:19 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2014-05-30 08:53:19 +00:00
|
|
|
*/
|
2016-04-21 17:57:29 +00:00
|
|
|
#include "intro/introstart.h"
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2017-04-13 08:27:10 +00:00
|
|
|
#include "lang/lang_keys.h"
|
2016-03-14 16:59:18 +00:00
|
|
|
#include "intro/introphone.h"
|
2016-11-11 13:46:04 +00:00
|
|
|
#include "ui/widgets/buttons.h"
|
2016-11-16 10:44:06 +00:00
|
|
|
#include "ui/widgets/labels.h"
|
2014-12-19 21:20:30 +00:00
|
|
|
|
2016-11-24 19:28:23 +00:00
|
|
|
namespace Intro {
|
2014-12-19 21:20:30 +00:00
|
|
|
|
2019-07-24 08:46:23 +00:00
|
|
|
StartWidget::StartWidget(
|
|
|
|
QWidget *parent,
|
|
|
|
not_null<Main::Account*> account,
|
|
|
|
not_null<Widget::Data*> data)
|
|
|
|
: Step(parent, account, data, true) {
|
2014-05-30 08:53:19 +00:00
|
|
|
setMouseTracking(true);
|
2019-06-18 16:53:27 +00:00
|
|
|
setTitleText(rpl::single(qsl("Telegram Desktop")));
|
|
|
|
setDescriptionText(tr::lng_intro_about());
|
2016-11-24 19:28:23 +00:00
|
|
|
show();
|
2014-05-30 08:53:19 +00:00
|
|
|
}
|
|
|
|
|
2016-11-24 19:28:23 +00:00
|
|
|
void StartWidget::submit() {
|
2019-07-24 08:46:23 +00:00
|
|
|
goNext<PhoneWidget>();
|
2014-05-30 08:53:19 +00:00
|
|
|
}
|
|
|
|
|
2019-06-18 16:53:27 +00:00
|
|
|
rpl::producer<QString> StartWidget::nextButtonText() const {
|
|
|
|
return tr::lng_start_msgs();
|
2014-05-30 08:53:19 +00:00
|
|
|
}
|
|
|
|
|
2016-11-24 19:28:23 +00:00
|
|
|
} // namespace Intro
|