tdesktop/Telegram/SourceFiles/intro/introstart.cpp

34 lines
863 B
C++
Raw Normal View History

/*
This file is part of Telegram Desktop,
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 "intro/introstart.h"
2017-04-13 08:27:10 +00:00
#include "lang/lang_keys.h"
#include "application.h"
#include "intro/introphone.h"
#include "ui/widgets/buttons.h"
#include "ui/widgets/labels.h"
2016-11-24 19:28:23 +00:00
namespace Intro {
2016-11-24 19:28:23 +00:00
StartWidget::StartWidget(QWidget *parent, Widget::Data *data) : Step(parent, data, true) {
setMouseTracking(true);
setTitleText([] { return qsl("Telegram Desktop"); });
setDescriptionText(langFactory(lng_intro_about));
2016-11-24 19:28:23 +00:00
show();
}
2016-11-24 19:28:23 +00:00
void StartWidget::submit() {
goNext(new Intro::PhoneWidget(parentWidget(), getData()));
}
2016-11-24 19:28:23 +00:00
QString StartWidget::nextButtonText() const {
return lang(lng_start_msgs);
}
2016-11-24 19:28:23 +00:00
} // namespace Intro