mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
Color debug toolbar when debugging (#545)
This commit is contained in:
parent
fc94b896c4
commit
1f49440c02
@ -48,8 +48,10 @@ DebugToolbar::DebugToolbar(MainWindow *main, QWidget *parent) :
|
||||
addAction(actionStepOver);
|
||||
|
||||
connect(actionStop, &QAction::triggered, Core(), &CutterCore::stopDebug);
|
||||
connect(actionStop, &QAction::triggered, [=](){ this->colorToolbar(false); });
|
||||
connect(actionStep, &QAction::triggered, Core(), &CutterCore::stepDebug);
|
||||
connect(actionStart, &QAction::triggered, Core(), &CutterCore::startDebug);
|
||||
connect(actionStart, &QAction::triggered, [=](){ this->colorToolbar(true); });
|
||||
connect(actionStepOver, &QAction::triggered, Core(), &CutterCore::stepOverDebug);
|
||||
connect(actionContinue, &QAction::triggered, Core(), &CutterCore::continueDebug);
|
||||
connect(actionContinueUntilMain, &QAction::triggered, this, &DebugToolbar::continueUntilMain);
|
||||
@ -61,3 +63,12 @@ void DebugToolbar::continueUntilMain()
|
||||
{
|
||||
Core()->continueUntilDebug(tr("main"));
|
||||
}
|
||||
|
||||
void DebugToolbar::colorToolbar(bool p)
|
||||
{
|
||||
if (p) {
|
||||
this->setStyleSheet("QToolBar {background: green;}");
|
||||
} else {
|
||||
this->setStyleSheet("");
|
||||
}
|
||||
}
|
@ -17,5 +17,6 @@ private:
|
||||
|
||||
private slots:
|
||||
void continueUntilMain();
|
||||
void colorToolbar(bool p);
|
||||
|
||||
};
|
Loading…
Reference in New Issue
Block a user