2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Removed blue window title, new small title used only in Windows.

This commit is contained in:
John Preston
2016-11-04 11:23:50 +03:00
parent 1ecd6866c7
commit 0cbb0014db
72 changed files with 726 additions and 1583 deletions

View File

@@ -40,8 +40,6 @@ IntroWidget::IntroWidget(QWidget *parent) : TWidget(parent)
, _a_stage(animation(this, &IntroWidget::step_stage))
, _a_show(animation(this, &IntroWidget::step_show))
, _back(this, new Ui::IconButton(this, st::introBackButton), base::lambda_unique<void()>(), st::introSlideDuration) {
setGeometry(QRect(0, st::titleHeight, App::wnd()->width(), App::wnd()->height() - st::titleHeight));
_back->entity()->setClickedCallback([this] { onBack(); });
_back->hideFast();
@@ -52,8 +50,6 @@ IntroWidget::IntroWidget(QWidget *parent) : TWidget(parent)
_stepHistory.push_back(new IntroStart(this));
_back->raise();
connect(parent, SIGNAL(resized(const QSize&)), this, SLOT(onParentResize(const QSize&)));
show();
setFocus();
@@ -76,10 +72,6 @@ void IntroWidget::onChangeLang() {
App::restart();
}
void IntroWidget::onParentResize(const QSize &newSize) {
resize(newSize);
}
void IntroWidget::onStepSubmit() {
step()->onSubmit();
}
@@ -339,8 +331,8 @@ bool IntroWidget::codeByTelegram() const {
}
void IntroWidget::resizeEvent(QResizeEvent *e) {
QRect r(innerRect());
for (IntroStep *step : _stepHistory) {
auto r = innerRect();
for (auto step : _stepHistory) {
step->setGeometry(r);
}
}