#include "setup.h"
#include "setupmodel.h"
#include "externalexecutablemodel.h"
-//#include "dbmediaimagecontainer.h"
#include "mediaimagecontainer.h"
#include "mediaimagecontainermodel.h"
#include "effileobjectcombobox.h"
#include "emuhelper.h"
#include "emufrontinputdialog.h"
-EmuLauncher::EmuLauncher(QErrorMessage *errorMessage, SetupModel *supModel, QWidget *parent, QString tmp) :
- QWidget(parent), supModel(supModel), tmpDirPath(tmp), errorMessage(errorMessage)
+EmuLauncher::EmuLauncher(QErrorMessage *errorMessage, SetupModel *supModel, ExternalExecutableModel
+ *emuModel, QWidget *parent, QString tmp) :
+ QWidget(parent), supModel(supModel), emuModel(emuModel), tmpDirPath(tmp), errorMessage(errorMessage)
{
emuHelper = new EmuHelper(this);
initWidgets();
qDebug() << "EmuLauncher::updateData";
micModel->refresh();
emuModel->refresh();
- supModel->refresh();
- //setupSelectBox->update();
}
void EmuLauncher::initWidgets()
setupSelectBox->setModel(supModel);
setupSelectBox->setModelColumn(SetupModel::Setup_Name);
- emuModel = new ExternalExecutableModel(this);
+ //emuModel = new ExternalExecutableModel(this);
execSelectBox = new QComboBox(this);
execSelectBox->setModel(emuModel);
execSelectBox->setModelColumn(ExternalExecutableModel::Executable_Name);