debugger: rename 'stop/quit' to exitDebugger

This commit is contained in:
hjk
2010-11-08 17:43:31 +01:00
parent 033a3aba9b
commit a181b45d28
6 changed files with 29 additions and 22 deletions

View File

@@ -32,6 +32,7 @@
#include "debuggeractions.h"
#include "debuggerconstants.h"
#include "debuggerrunner.h"
#include <utils/qtcassert.h>
#include <utils/savedaction.h>
@@ -96,7 +97,7 @@ void SnapshotWindow::keyPressEvent(QKeyEvent *ev)
if (si.isEmpty())
si.append(currentIndex().sibling(currentIndex().row(), 0));
foreach (const QModelIndex &idx, normalizeIndexes(si))
m_snapshotHandler->removeSnapshot(idx.row());
removeSnapshot(idx.row());
}
QTreeView::keyPressEvent(ev);
}
@@ -133,13 +134,18 @@ void SnapshotWindow::contextMenuEvent(QContextMenuEvent *ev)
if (act == actCreate)
m_snapshotHandler->createSnapshot(idx.row());
else if (act == actRemove)
m_snapshotHandler->removeSnapshot(idx.row());
removeSnapshot(idx.row());
else if (act == actAdjust)
resizeColumnsToContents();
else if (act == actAlwaysAdjust)
setAlwaysResizeColumnsToContents(!m_alwaysResizeColumnsToContents);
}
void SnapshotWindow::removeSnapshot(int i)
{
m_snapshotHandler->at(i)->stop();
}
void SnapshotWindow::resizeColumnsToContents()
{
for (int i = model()->columnCount(); --i >= 0; )