Use onActivate instead of focusInEvent for page focus control.

main
Teo Mrnjavac 10 years ago
parent 86c49fbc89
commit e258f0b5a9

@ -128,7 +128,7 @@ UsersPage::createJobs( const QString& defaultUserGroup, const QStringList& defau
void void
UsersPage::focusInEvent( QFocusEvent* e ) UsersPage::onActivate()
{ {
ui->textBoxFullName->setFocus(); ui->textBoxFullName->setFocus();
} }

@ -42,8 +42,8 @@ public:
QList< Calamares::job_ptr > createJobs( const QString& defaultUserGroup, QList< Calamares::job_ptr > createJobs( const QString& defaultUserGroup,
const QStringList& defaultGroupsList ); const QStringList& defaultGroupsList );
protected:
void focusInEvent( QFocusEvent* e ) override; void onActivate();
protected slots: protected slots:
void onFullNameTextEdited( const QString& ); void onFullNameTextEdited( const QString& );

Loading…
Cancel
Save