X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fcoreconfigwizard.cpp;h=4e4587023369f94c780cf6280d7c01f3773c42e3;hp=c51bd85b97f6fea72c41b55c213850160c172609;hb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;hpb=c194ed5fb3d15e14b9364f9796d3521910dc72fe diff --git a/src/qtui/coreconfigwizard.cpp b/src/qtui/coreconfigwizard.cpp index c51bd85b..4e458702 100644 --- a/src/qtui/coreconfigwizard.cpp +++ b/src/qtui/coreconfigwizard.cpp @@ -99,7 +99,7 @@ QVariantMap propertiesFromFieldWidgets(QGroupBox *fieldBox, const std::vector(fieldInfo).type()) { case QVariant::Int: { - QSpinBox *spinBox = fieldBox->findChild(key); + auto *spinBox = fieldBox->findChild(key); if (spinBox) value = spinBox->value(); else @@ -107,7 +107,7 @@ QVariantMap propertiesFromFieldWidgets(QGroupBox *fieldBox, const std::vectorfindChild(key); + auto *lineEdit = fieldBox->findChild(key); if (lineEdit) value = lineEdit->text(); else @@ -477,13 +477,13 @@ void SyncPage::initializePage() emit completeChanged(); // Fill in sync info about the storage layer. - StorageSelectionPage *storagePage = qobject_cast(wizard()->page(CoreConfigWizard::StorageSelectionPage)); + auto *storagePage = qobject_cast(wizard()->page(CoreConfigWizard::StorageSelectionPage)); QString backend = storagePage->backend(); QVariantMap backendProperties = storagePage->backendProperties(); ui.backend->setText(storagePage->displayName()); // Fill in sync info about the authentication layer. - AuthenticationSelectionPage *authPage = qobject_cast(wizard()->page(CoreConfigWizard::AuthenticationSelectionPage)); + auto *authPage = qobject_cast(wizard()->page(CoreConfigWizard::AuthenticationSelectionPage)); QString authenticator = authPage->authenticator(); QVariantMap authProperties = authPage->authProperties(); ui.authenticator->setText(authPage->displayName());