NOISSUE Renaming for better understanding

This commit is contained in:
janrupf 2019-06-23 14:54:17 +02:00
parent 306b98edac
commit b5a16935b7
4 changed files with 5 additions and 5 deletions

View File

@ -819,7 +819,7 @@ bool InstanceList::commitStagedInstance(const QString& path, const QString& inst
instanceSet.insert(instID);
m_groups.insert(groupName);
emit instancesChanged();
emit instanceAdded(instID);
emit instanceSelectRequest(instID);
}
saveGroupList();
return true;

View File

@ -129,7 +129,7 @@ public:
signals:
void dataIsInvalid();
void instancesChanged();
void instanceAdded(QString instanceId);
void instanceSelectRequest(QString instanceId);
void groupsChanged(QSet<QString> groups);
public slots:

View File

@ -703,7 +703,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow
connect(MMC->instances().get(), &InstanceList::dataIsInvalid, this, &MainWindow::selectionBad);
// handle newly added instances
connect(MMC->instances().get(), &InstanceList::instanceAdded, this, &MainWindow::instanceAdded);
connect(MMC->instances().get(), &InstanceList::instanceSelectRequest, this, &MainWindow::instanceSelectRequest);
// When the global settings page closes, we want to know about it and update our state
connect(MMC, &MultiMC::globalSettingsClosed, this, &MainWindow::globalSettingsClosed);
@ -1839,7 +1839,7 @@ void MainWindow::instanceChanged(const QModelIndex &current, const QModelIndex &
}
}
void MainWindow::instanceAdded(QString id)
void MainWindow::instanceSelectRequest(QString id)
{
setSelectedInstanceById(id);
}

View File

@ -152,7 +152,7 @@ private slots:
void instanceChanged(const QModelIndex &current, const QModelIndex &previous);
void instanceAdded(QString id);
void instanceSelectRequest(QString id);
void instanceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);