forked from qt-creator/qt-creator
debugger: add missing 'Use full path' toggle in recently added 'Add Breakpoints' dialog
Reviewed-by: Friedemann Kleint
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user