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:
parent
f596a6959e
commit
dd717427e1
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -143,7 +143,7 @@ protected:
|
|||
* @brief Clear all applications from the list and re insert them from mTempApplications
|
||||
*
|
||||
*/
|
||||
void PopulateListWidget();
|
||||
void PopulateApplicationList();
|
||||
|
||||
/**
|
||||
* @brief Load saved values
|
||||
|
|
Loading…
Reference in New Issue