debugger: add missing 'Use full path' toggle in recently added 'Add Breakpoints' dialog

Reviewed-by: Friedemann Kleint
This commit is contained in:
hjk
2010-09-28 13:14:14 +02:00
parent 19638d3d97
commit b8d5f256a0
8 changed files with 127 additions and 64 deletions

View File

@@ -285,6 +285,9 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const
const BreakpointData *data = at(mi.row());
if (role == BreakpointRole)
return qulonglong(data);
if (role == BreakpointUseFullPathRole)
return data->useFullPath;
@@ -502,6 +505,15 @@ bool BreakHandler::setData(const QModelIndex &index, const QVariant &value, int
return false;
}
void BreakHandler::reinsertBreakpoint(BreakpointData *data)
{
// FIXME: Use some more direct method?
appendBreakpoint(data->clone());
removeBreakpoint(data);
m_engine->attemptBreakpointSynchronization();
emit layoutChanged();
}
void BreakHandler::append(BreakpointData *data)
{
data->m_handler = this;