summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2014-05-02 17:44:34 +0200
committerTobias Hunger <tobias.hunger@digia.com>2014-05-02 17:46:25 +0200
commit4635a4009fa9f44ef46c2041aa0f86bd1322d813 (patch)
tree99b7f8a0e20349988d0aebcdfea059d2b4e43d05
parent0ea64742627930cd3bfdf0da7156e103013c5631 (diff)
downloadqt-creator-4635a4009fa9f44ef46c2041aa0f86bd1322d813.tar.gz
New Dialog: Fix typo
Change-Id: I8c56f50ebb23fc6a0ac84bc24514a19dd5cd8a8a Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
-rw-r--r--src/plugins/coreplugin/dialogs/newdialog.cpp10
-rw-r--r--src/plugins/coreplugin/dialogs/newdialog.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/coreplugin/dialogs/newdialog.cpp b/src/plugins/coreplugin/dialogs/newdialog.cpp
index 8de53b04bc..2c1c467241 100644
--- a/src/plugins/coreplugin/dialogs/newdialog.cpp
+++ b/src/plugins/coreplugin/dialogs/newdialog.cpp
@@ -354,17 +354,17 @@ IWizard *NewDialog::currentWizard() const
return wizardOfItem(m_model->itemFromIndex(index));
}
-void NewDialog::addItem(QStandardItem *topLEvelCategoryItem, IWizard *wizard)
+void NewDialog::addItem(QStandardItem *topLevelCategoryItem, IWizard *wizard)
{
const QString categoryName = wizard->category();
QStandardItem *categoryItem = 0;
- for (int i = 0; i < topLEvelCategoryItem->rowCount(); i++) {
- if (topLEvelCategoryItem->child(i, 0)->data(Qt::UserRole) == categoryName)
- categoryItem = topLEvelCategoryItem->child(i, 0);
+ for (int i = 0; i < topLevelCategoryItem->rowCount(); i++) {
+ if (topLevelCategoryItem->child(i, 0)->data(Qt::UserRole) == categoryName)
+ categoryItem = topLevelCategoryItem->child(i, 0);
}
if (!categoryItem) {
categoryItem = new QStandardItem();
- topLEvelCategoryItem->appendRow(categoryItem);
+ topLevelCategoryItem->appendRow(categoryItem);
m_categoryItems.append(categoryItem);
categoryItem->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
categoryItem->setText(QLatin1String(" ") + wizard->displayCategory());
diff --git a/src/plugins/coreplugin/dialogs/newdialog.h b/src/plugins/coreplugin/dialogs/newdialog.h
index 362ee60a67..db4d4bfdea 100644
--- a/src/plugins/coreplugin/dialogs/newdialog.h
+++ b/src/plugins/coreplugin/dialogs/newdialog.h
@@ -75,7 +75,7 @@ private slots:
private:
Core::IWizard *currentWizard() const;
- void addItem(QStandardItem *topLEvelCategoryItem, IWizard *wizard);
+ void addItem(QStandardItem *topLevelCategoryItem, IWizard *wizard);
Ui::NewDialog *m_ui;
QStandardItemModel *m_model;