GUI: Rename method.

SettingsDialog::PopulateListwidget() was a bit confusing name as
there are more than one list widgets already in settings-dialog.
This commit is contained in:
Kimmo Varis 2011-02-25 09:24:29 +02:00
parent f596a6959e
commit dd717427e1
2 changed files with 9 additions and 9 deletions

View File

@ -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++)
{

View File

@ -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();
/**