aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/breakwindow.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2010-02-12 10:52:09 +0100
committerhjk <[email protected]>2010-02-12 10:53:25 +0100
commit04b4fcb6bd7b4c20ed11606281ec2bd1cd089917 (patch)
treee7b1eeb8b9d6336463aac79996c89be9e16385dc /src/plugins/debugger/breakwindow.cpp
parent221fc011b8430ab79551818d5d72f4bde7f66984 (diff)
debugger: change capitalization of context menu action texts to Book Style
Diffstat (limited to 'src/plugins/debugger/breakwindow.cpp')
-rw-r--r--src/plugins/debugger/breakwindow.cpp32
1 files changed, 20 insertions, 12 deletions
diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp
index e27b4b3a713..f3ee5db74b1 100644
--- a/src/plugins/debugger/breakwindow.cpp
+++ b/src/plugins/debugger/breakwindow.cpp
@@ -145,48 +145,56 @@ void BreakWindow::contextMenuEvent(QContextMenuEvent *ev)
const int rowCount = itemModel->rowCount();
const unsigned engineCapabilities = m_manager->debuggerCapabilities();
- QAction *deleteAction = new QAction(tr("Delete breakpoint"), &menu);
+ QAction *deleteAction = new QAction(tr("Delete Breakpoint"), &menu);
deleteAction->setEnabled(si.size() > 0);
- QAction *deleteAllAction = new QAction(tr("Delete all breakpoints"), &menu);
+ QAction *deleteAllAction = new QAction(tr("Delete All Breakpoints"), &menu);
deleteAllAction->setEnabled(si.size() > 0);
- // Delete by file: Find indexes of breakpoints of the same file
+ // Delete by file: Find indices of breakpoints of the same file.
QAction *deleteByFileAction = 0;
QList<int> breakPointsOfFile;
if (indexUnderMouse.isValid()) {
- const QString file = itemModel->data(indexUnderMouse.sibling(indexUnderMouse.row(), 2)).toString();
+ const QModelIndex index = indexUnderMouse.sibling(indexUnderMouse.row(), 2);
+ const QString file = itemModel->data(index).toString();
if (!file.isEmpty()) {
for (int i = 0; i < rowCount; i++)
if (itemModel->data(itemModel->index(i, 2)).toString() == file)
breakPointsOfFile.push_back(i);
if (breakPointsOfFile.size() > 1) {
- deleteByFileAction = new QAction(tr("Delete breakpoints of \"%1\"").arg(file), &menu);
+ deleteByFileAction =
+ new QAction(tr("Delete Breakpoints of \"%1\"").arg(file), &menu);
deleteByFileAction->setEnabled(true);
}
}
}
if (!deleteByFileAction) {
- deleteByFileAction = new QAction(tr("Delete breakpoints of file"), &menu);
+ deleteByFileAction = new QAction(tr("Delete Breakpoints of File"), &menu);
deleteByFileAction->setEnabled(false);
}
- QAction *adjustColumnAction = new QAction(tr("Adjust column widths to contents"), &menu);
+ QAction *adjustColumnAction =
+ new QAction(tr("Adjust Column Widths to Contents"), &menu);
+
+ QAction *alwaysAdjustAction =
+ new QAction(tr("Always Adjust Column Widths to Contents"), &menu);
- QAction *alwaysAdjustAction = new QAction(tr("Always adjust column widths to contents"), &menu);
alwaysAdjustAction->setCheckable(true);
alwaysAdjustAction->setChecked(m_alwaysResizeColumnsToContents);
- QAction *editConditionAction = new QAction(tr("Edit condition..."), &menu);
+ QAction *editConditionAction =
+ new QAction(tr("Edit Condition..."), &menu);
editConditionAction->setEnabled(si.size() > 0);
- QAction *synchronizeAction = new QAction(tr("Synchronize breakpoints"), &menu);
- synchronizeAction->setEnabled(Debugger::DebuggerManager::instance()->debuggerActionsEnabled());
+ QAction *synchronizeAction =
+ new QAction(tr("Synchronize Breakpoints"), &menu);
+ synchronizeAction->setEnabled(
+ Debugger::DebuggerManager::instance()->debuggerActionsEnabled());
QModelIndex idx0 = (si.size() ? si.front() : QModelIndex());
QModelIndex idx2 = idx0.sibling(idx0.row(), 2);
bool enabled = si.isEmpty() || itemModel->data(idx0, Qt::UserRole).toBool();
- const QString str5 = enabled ? tr("Disable breakpoint") : tr("Enable breakpoint");
+ const QString str5 = enabled ? tr("Disable Breakpoint") : tr("Enable Breakpoint");
QAction *toggleEnabledAction = new QAction(str5, &menu);
toggleEnabledAction->setEnabled(si.size() > 0);