IntroSignup::IntroSignup(IntroWidget *parent) : IntroStage(parent), errorAlpha(0), a_photo(0), next(this, lang(lng_intro_finish), st::btnIntroFinish), first(this, st::inpIntroName, lang(lng_signup_firstname)), last(this, st::inpIntroName, lang(lng_signup_lastname)) { setVisible(false); setGeometry(parent->innerRect()); connect(&next, SIGNAL(clicked()), this, SLOT(onSubmitName())); connect(&checkRequest, SIGNAL(timeout()), this, SLOT(onCheckRequest())); setMouseTracking(true); }
IntroSignup::IntroSignup(IntroWidget *parent) : IntroStep(parent) , a_errorAlpha(0) , a_photoOver(0) , _a_error(animation(this, &IntroSignup::step_error)) , _a_photo(animation(this, &IntroSignup::step_photo)) , next(this, lang(lng_intro_finish), st::btnIntroNext) , first(this, st::inpIntroName, lang(lng_signup_firstname)) , last(this, st::inpIntroName, lang(lng_signup_lastname)) , sentRequest(0) , _invertOrder(langFirstNameGoesSecond()) { setVisible(false); setGeometry(parent->innerRect()); connect(&next, SIGNAL(clicked()), this, SLOT(onSubmitName())); connect(&checkRequest, SIGNAL(timeout()), this, SLOT(onCheckRequest())); if (_invertOrder) { setTabOrder(&last, &first); } setMouseTracking(true); }