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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user