Debugger: Fix UI text grammar and capitalization

Make some tooltips shorter.

Change-Id: Iff61402e3059360417ca0d763dbcae0ed3841e1c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Leena Miettinen
2016-11-01 15:16:04 +01:00
parent 7b15ae7e05
commit d550cbdd40
2 changed files with 6 additions and 8 deletions

View File

@@ -446,7 +446,7 @@ BreakpointDialog::BreakpointDialog(Breakpoint b, QWidget *parent)
const QString moduleToolTip =
tr("<p>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)

View File

@@ -1534,7 +1534,7 @@ void WatchModel::inputNewExpression()
auto hint = new QLabel(QString("<html>%1</html>").arg(
tr("Note: Evaluators will be re-evaluated after each step. "
"For details check the <a href=\""
"For details, see the <a href=\""
"qthelp://org.qt-project.qtcreator/doc/creator-debug-mode.html#locals-and-expressions"
"\">documentation</a>.")), &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;