From dd717427e16e7396222759420c993c0c5a92bf54 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Fri, 25 Feb 2011 09:24:29 +0200 Subject: [PATCH] GUI: Rename method. SettingsDialog::PopulateListwidget() was a bit confusing name as there are more than one list widgets already in settings-dialog. --- gui/settingsdialog.cpp | 8 ++++---- gui/settingsdialog.h | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gui/settingsdialog.cpp b/gui/settingsdialog.cpp index 78f110156..8425c8002 100644 --- a/gui/settingsdialog.cpp +++ b/gui/settingsdialog.cpp @@ -75,7 +75,7 @@ SettingsDialog::SettingsDialog(QSettings *programSettings, this, SLOT(EditIncludePath())); mUI.mListWidget->setSortingEnabled(false); - PopulateListWidget(); + PopulateApplicationList(); const int count = QThread::idealThreadCount(); if (count != -1) @@ -217,7 +217,7 @@ void SettingsDialog::DeleteApplication() { mTempApplications->RemoveApplication(mUI.mListWidget->row(item)); mUI.mListWidget->clear(); - PopulateListWidget(); + PopulateApplicationList(); } } @@ -249,11 +249,11 @@ void SettingsDialog::DefaultApplication() int index = mUI.mListWidget->row(selected[0]); mTempApplications->MoveFirst(index); mUI.mListWidget->clear(); - PopulateListWidget(); + PopulateApplicationList(); } } -void SettingsDialog::PopulateListWidget() +void SettingsDialog::PopulateApplicationList() { for (int i = 0; i < mTempApplications->GetApplicationCount(); i++) { diff --git a/gui/settingsdialog.h b/gui/settingsdialog.h index 77d9c7f81..743595fd1 100644 --- a/gui/settingsdialog.h +++ b/gui/settingsdialog.h @@ -143,13 +143,13 @@ protected: * @brief Clear all applications from the list and re insert them from mTempApplications * */ - void PopulateListWidget(); + void PopulateApplicationList(); /** - * @brief Load saved values - * Loads dialog size and column widths. - * - */ + * @brief Load saved values + * Loads dialog size and column widths. + * + */ void SaveSettings(); /**