aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/designer/formtemplatewizardpage.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2017-10-16 20:47:05 +0200
committerAndré Hartmann <aha_1980@gmx.de>2017-10-20 06:34:40 +0000
commit1d53110402264e294592bb0c0e8a52546bdf426a (patch)
tree07e6be8f7275709fe252c22cca37cb461dafdceb /src/plugins/designer/formtemplatewizardpage.cpp
parent72c283afc8d748296dc509fb73848c2607fa7d9f (diff)
Designer: Modernize
* Remove QLatin1{Char|String} * Use member initialization * Use range-for * Use nullptr Change-Id: I51c24c0a2066861f59731585f19d61b28c76c0a3 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/designer/formtemplatewizardpage.cpp')
-rw-r--r--src/plugins/designer/formtemplatewizardpage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/designer/formtemplatewizardpage.cpp b/src/plugins/designer/formtemplatewizardpage.cpp
index 7336ddc159..ce5f3ddb8c 100644
--- a/src/plugins/designer/formtemplatewizardpage.cpp
+++ b/src/plugins/designer/formtemplatewizardpage.cpp
@@ -49,7 +49,7 @@ namespace Internal {
FormPageFactory::FormPageFactory()
{
- setTypeIdsSuffix(QLatin1String("Form"));
+ setTypeIdsSuffix("Form");
}
Utils::WizardPage *FormPageFactory::create(ProjectExplorer::JsonWizard *wizard, Core::Id typeId,
@@ -117,14 +117,14 @@ bool FormTemplateWizardPage::validatePage()
QMessageBox::critical(this, tr("%1 - Error").arg(title()), errorMessage);
return false;
}
- wizard()->setProperty("FormContents", m_templateContents.split(QLatin1Char('\n')));
+ wizard()->setProperty("FormContents", m_templateContents.split('\n'));
return true;
}
QString FormTemplateWizardPage::stripNamespaces(const QString &className)
{
QString rc = className;
- const int namespaceIndex = rc.lastIndexOf(QLatin1String("::"));
+ const int namespaceIndex = rc.lastIndexOf("::");
if (namespaceIndex != -1)
rc.remove(0, namespaceIndex + 2);
return rc;