Qt: Label cheat windows
This commit is contained in:
@@ -69,6 +69,8 @@ void CheatEntryWidget::editClicked() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CheatEditDialog::CheatEditDialog(Emulator* emu, CheatEntryWidget& cheatEntry) : QDialog(), emu(emu), cheatEntry(cheatEntry) {
|
CheatEditDialog::CheatEditDialog(Emulator* emu, CheatEntryWidget& cheatEntry) : QDialog(), emu(emu), cheatEntry(cheatEntry) {
|
||||||
|
setWindowTitle("Edit Cheat");
|
||||||
|
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
setModal(true);
|
setModal(true);
|
||||||
|
|
||||||
@@ -159,6 +161,7 @@ void CheatEditDialog::rejected() {
|
|||||||
|
|
||||||
CheatsWindow::CheatsWindow(Emulator* emu, const std::filesystem::path& cheatPath, QWidget* parent)
|
CheatsWindow::CheatsWindow(Emulator* emu, const std::filesystem::path& cheatPath, QWidget* parent)
|
||||||
: QWidget(parent, Qt::Window), emu(emu), cheatPath(cheatPath) {
|
: QWidget(parent, Qt::Window), emu(emu), cheatPath(cheatPath) {
|
||||||
|
setWindowTitle("Cheats");
|
||||||
mainWindow = static_cast<MainWindow*>(parent);
|
mainWindow = static_cast<MainWindow*>(parent);
|
||||||
|
|
||||||
QVBoxLayout* layout = new QVBoxLayout;
|
QVBoxLayout* layout = new QVBoxLayout;
|
||||||
@@ -205,4 +208,4 @@ void CheatsWindow::removeClicked() {
|
|||||||
|
|
||||||
CheatEntryWidget* entry = static_cast<CheatEntryWidget*>(cheatList->itemWidget(item));
|
CheatEntryWidget* entry = static_cast<CheatEntryWidget*>(cheatList->itemWidget(item));
|
||||||
entry->Remove();
|
entry->Remove();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user