Only enable emulation

This commit is contained in:
mandlebro 2018-07-26 10:46:17 +01:00 committed by xarkes
parent c6e1d20907
commit 4424c3c45d
2 changed files with 8 additions and 7 deletions

View File

@ -134,15 +134,15 @@ void MainWindow::initUI()
DebugToolbar *debugToolbar = new DebugToolbar(this); DebugToolbar *debugToolbar = new DebugToolbar(this);
ui->mainToolBar->addWidget(debugToolbar); ui->mainToolBar->addWidget(debugToolbar);
// Debug menu // Debug menu
ui->menuDebug->addAction(debugToolbar->actionStart); // ui->menuDebug->addAction(debugToolbar->actionStart);
ui->menuDebug->addAction(debugToolbar->actionStartEmul); ui->menuDebug->addAction(debugToolbar->actionStartEmul);
ui->menuDebug->addAction(debugToolbar->actionAttach); // ui->menuDebug->addAction(debugToolbar->actionAttach);
ui->menuDebug->addSeparator(); ui->menuDebug->addSeparator();
ui->menuDebug->addAction(debugToolbar->actionStep); ui->menuDebug->addAction(debugToolbar->actionStep);
ui->menuDebug->addAction(debugToolbar->actionStepOver); ui->menuDebug->addAction(debugToolbar->actionStepOver);
ui->menuDebug->addSeparator(); ui->menuDebug->addSeparator();
ui->menuDebug->addAction(debugToolbar->actionContinue); // ui->menuDebug->addAction(debugToolbar->actionContinue);
ui->menuDebug->addAction(debugToolbar->actionContinueUntilCall); // ui->menuDebug->addAction(debugToolbar->actionContinueUntilCall);
ui->menuDebug->addAction(debugToolbar->actionContinueUntilSyscall); ui->menuDebug->addAction(debugToolbar->actionContinueUntilSyscall);
// Sepparator between undo/redo and goto lineEdit // Sepparator between undo/redo and goto lineEdit

View File

@ -43,10 +43,11 @@ DebugToolbar::DebugToolbar(MainWindow *main, QWidget *parent) :
startButton->setPopupMode(QToolButton::MenuButtonPopup); startButton->setPopupMode(QToolButton::MenuButtonPopup);
connect(startButton, &QToolButton::triggered, startButton, &QToolButton::setDefaultAction); connect(startButton, &QToolButton::triggered, startButton, &QToolButton::setDefaultAction);
QMenu *startMenu = new QMenu; QMenu *startMenu = new QMenu;
startMenu->addAction(actionStart); // startMenu->addAction(actionStart);
startMenu->addAction(actionStartEmul); startMenu->addAction(actionStartEmul);
startMenu->addAction(actionAttach); // startMenu->addAction(actionAttach);
startButton->setDefaultAction(actionStart); // startButton->setDefaultAction(actionStart);
startButton->setDefaultAction(actionStartEmul);
startButton->setMenu(startMenu); startButton->setMenu(startMenu);
QToolButton *continueUntilButton = new QToolButton; QToolButton *continueUntilButton = new QToolButton;