Skip to content

Commit

Permalink
Qt: Label cheat windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat authored Dec 1, 2024
1 parent d8df0dc commit 6b1f39b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/panda_qt/cheats_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ void CheatEntryWidget::editClicked() {
}

CheatEditDialog::CheatEditDialog(Emulator* emu, CheatEntryWidget& cheatEntry) : QDialog(), emu(emu), cheatEntry(cheatEntry) {
setWindowTitle("Edit Cheat");

setAttribute(Qt::WA_DeleteOnClose);
setModal(true);

Expand Down Expand Up @@ -159,6 +161,7 @@ void CheatEditDialog::rejected() {

CheatsWindow::CheatsWindow(Emulator* emu, const std::filesystem::path& cheatPath, QWidget* parent)
: QWidget(parent, Qt::Window), emu(emu), cheatPath(cheatPath) {
setWindowTitle("Cheats");
mainWindow = static_cast<MainWindow*>(parent);

QVBoxLayout* layout = new QVBoxLayout;
Expand Down Expand Up @@ -205,4 +208,4 @@ void CheatsWindow::removeClicked() {

CheatEntryWidget* entry = static_cast<CheatEntryWidget*>(cheatList->itemWidget(item));
entry->Remove();
}
}

0 comments on commit 6b1f39b

Please sign in to comment.