From d550cbdd405d0cc3d570c156e9cf844a5ceba754 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Tue, 1 Nov 2016 15:16:04 +0100 Subject: [PATCH] Debugger: Fix UI text grammar and capitalization Make some tooltips shorter. Change-Id: Iff61402e3059360417ca0d763dbcae0ed3841e1c Reviewed-by: hjk --- src/plugins/debugger/breakhandler.cpp | 6 +++--- src/plugins/debugger/watchhandler.cpp | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index e20d9ecc693..6ed93164d72 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -446,7 +446,7 @@ BreakpointDialog::BreakpointDialog(Breakpoint b, QWidget *parent) const QString moduleToolTip = tr("

Specifying the module (base name of the library or executable) " "for function or file type breakpoints can significantly speed up " - "debugger start-up times (CDB, LLDB)."); + "debugger startup times (CDB, LLDB)."); m_lineEditModule = new QLineEdit(groupBoxAdvanced); m_lineEditModule->setToolTip(moduleToolTip); m_labelModule = new QLabel(tr("&Module:"), groupBoxAdvanced); @@ -1972,8 +1972,8 @@ bool BreakHandler::contextMenuEvent(const ItemViewEvent &ev) // FIXME BP: m_engine->threadsHandler()->currentThreadId(); int threadId = 0; addAction(menu, - threadId == -1 ? tr("Associate Breakpoint With All Threads") - : tr("Associate Breakpoint With Thread %1").arg(threadId), + threadId == -1 ? tr("Associate Breakpoint with All Threads") + : tr("Associate Breakpoint with Thread %1").arg(threadId), !selectedItems.isEmpty(), [this, selectedItems, threadId] { for (Breakpoint bp : selectedItems) diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 97970782666..1b47b7cf950 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -1534,7 +1534,7 @@ void WatchModel::inputNewExpression() auto hint = new QLabel(QString("%1").arg( tr("Note: Evaluators will be re-evaluated after each step. " - "For details check the documentation.")), &dlg); @@ -1669,8 +1669,7 @@ QMenu *WatchModel::createBreakpointMenu(WatchItem *item) BreakpointParameters bp(WatchpointAtAddress); bp.address = item->address; act->setChecked(bh->findWatchpoint(bp)); - act->setToolTip(tr("Setting a data breakpoint on an address will cause the program " - "to stop when the data at the address is modified.")); + act->setToolTip(tr("Stop the program when the data at the address is modified.")); act = addAction(menu, tr("Add Data Breakpoint at Pointer's Address (0x%1)").arg(item->origaddr, 0, 16), tr("Add Data Breakpoint at Pointer's Address"), @@ -1687,8 +1686,7 @@ QMenu *WatchModel::createBreakpointMenu(WatchItem *item) tr("Add Data Breakpoint at Expression"), m_engine->hasCapability(WatchpointByExpressionCapability) && !item->name.isEmpty(), [bh, item] { bh->setWatchpointAtExpression(item->name); }); - act->setToolTip(tr("Setting a data breakpoint on an expression will cause the program " - "to stop when the data at the address given by the expression " + act->setToolTip(tr("Stop the program when the data at the address given by the expression " "is modified.")); return menu;