forked from qt-creator/qt-creator
Debugger: enable disable breakpoint by clicking
Disabled breakpoints can be enabled by just clicking on them. Clicking an enabled breakpoint deletes it (just as before). Change-Id: I651fb0f333d717db245ae0d06fcdfa6888cf8e7d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -120,6 +120,9 @@ public:
|
|||||||
void clicked() final
|
void clicked() final
|
||||||
{
|
{
|
||||||
QTC_ASSERT(m_bp, return);
|
QTC_ASSERT(m_bp, return);
|
||||||
|
if (!m_bp->isEnabled())
|
||||||
|
m_bp->setEnabled(true);
|
||||||
|
else
|
||||||
m_bp->deleteGlobalOrThisBreakpoint();
|
m_bp->deleteGlobalOrThisBreakpoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -183,6 +186,9 @@ public:
|
|||||||
void clicked() final
|
void clicked() final
|
||||||
{
|
{
|
||||||
QTC_ASSERT(m_gbp, return);
|
QTC_ASSERT(m_gbp, return);
|
||||||
|
if (!m_gbp->isEnabled())
|
||||||
|
m_gbp->setEnabled(true);
|
||||||
|
else
|
||||||
m_gbp->removeBreakpointFromModel();
|
m_gbp->removeBreakpointFromModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user