Commit d9e445bb authored by hjk's avatar hjk

debugger: re-enable snapshot creation using the menu action

parent 588d44c5
......@@ -250,7 +250,7 @@ enum ModelRoles
// Snapshots
SnapshotCapabilityRole,
RequestMakeSnapshotRole,
RequestCreateSnapshotRole,
RequestActivateSnapshotRole,
RequestRemoveSnapshotRole,
......
......@@ -477,8 +477,8 @@ void DebuggerEngine::handleCommand(int role, const QVariant &value)
d->queueShutdownInferior();
break;
case RequestMakeSnapshotRole:
makeSnapshot();
case RequestCreateSnapshotRole:
createSnapshot();
break;
case RequestActivationRole:
......
......@@ -152,7 +152,7 @@ public:
virtual bool isSynchroneous() const { return false; }
virtual QString qtNamespace() const { return QString(); }
virtual void makeSnapshot() {}
virtual void createSnapshot() {}
virtual void updateAll() {}
virtual void attemptBreakpointSynchronization() {}
......
......@@ -1177,8 +1177,8 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, QString *er
m_actions.watchAction2 = new QAction(tr("Add to Watch Window"), this);
m_actions.watchAction2->setProperty(Role, RequestExecWatchRole);
m_actions.snapshotAction = new QAction(tr("Snapshot"), this);
m_actions.snapshotAction->setProperty(Role, RequestExecSnapshotRole);
m_actions.snapshotAction = new QAction(tr("Create Snapshot"), this);
m_actions.snapshotAction->setProperty(Role, RequestCreateSnapshotRole);
m_actions.snapshotAction->setIcon(
QIcon(":/debugger/images/debugger_snapshot_small.png"));
......
......@@ -2968,7 +2968,7 @@ void GdbEngine::handleThreadListIds(const GdbResponse &response)
//
//////////////////////////////////////////////////////////////////////
void GdbEngine::makeSnapshot()
void GdbEngine::createSnapshot()
{
QString fileName;
QTemporaryFile tf(QDir::tempPath() + _("/gdbsnapshot"));
......
......@@ -378,7 +378,7 @@ private: ////////// View & Data Stuff //////////
//
// Snapshot specific stuff
//
virtual void makeSnapshot();
virtual void createSnapshot();
void handleMakeSnapshot(const GdbResponse &response);
//
......
......@@ -214,10 +214,10 @@ bool SnapshotHandler::setData
(const QModelIndex &index, const QVariant &value, int role)
{
Q_UNUSED(value);
if (index.isValid() && role == RequestMakeSnapshotRole) {
if (index.isValid() && role == RequestCreateSnapshotRole) {
DebuggerEngine *engine = engineAt(index.row());
QTC_ASSERT(engine, return false);
engine->makeSnapshot();
engine->createSnapshot();
return true;
}
if (index.isValid() && role == RequestActivateSnapshotRole) {
......
......@@ -140,7 +140,7 @@ void SnapshotWindow::contextMenuEvent(QContextMenuEvent *ev)
QAction *act = menu.exec(ev->globalPos());
if (act == actCreate)
model()->setData(idx, idx.row(), RequestMakeSnapshotRole);
model()->setData(idx, idx.row(), RequestCreateSnapshotRole);
else if (act == actRemove)
model()->setData(idx, idx.row(), RequestRemoveSnapshotRole);
else if (act == actAdjust)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment