just some touches to the gui

This commit is contained in:
SimoneN64
2024-06-21 21:39:49 +02:00
parent db19f8c86e
commit cd7d967b0a
3 changed files with 8 additions and 1 deletions

View File

@@ -38,6 +38,9 @@ void KaizenQt::ConnectMainWindowSignalsToSlots() noexcept {
});
connect(mainWindow.get(), &MainWindowController::Reset, emuThread.get(), &EmuThread::Reset);
connect(mainWindow.get(), &MainWindowController::Stop, emuThread.get(), &EmuThread::Stop);
connect(mainWindow.get(), &MainWindowController::Stop, this, [this]() {
mainWindow->setWindowTitle("Kaizen");
});
connect(mainWindow.get(), &MainWindowController::Pause, emuThread.get(), &EmuThread::TogglePause);
}
@@ -55,6 +58,7 @@ void KaizenQt::dropEvent(QDropEvent* event) {
void KaizenQt::LoadROM(const QString& fileName) noexcept {
emuThread->start();
emuThread->core.LoadROM(fileName.toStdString());
mainWindow->setWindowTitle(emuThread->core.cpu->GetMem().rom.gameNameDB.c_str());
}
void KaizenQt::closeEvent(QCloseEvent*) {