Debugger: Fix UI text capitalization

Change-Id: Iccd08dae2ef2a86c0d0d5fb5d572b24664c40431
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Leena Miettinen
2017-04-05 14:08:44 +02:00
parent ad92439930
commit 71f2181ffb
2 changed files with 15 additions and 17 deletions

View File

@@ -363,19 +363,19 @@ BreakpointDialog::BreakpointDialog(Breakpoint b, QWidget *parent)
// Match BreakpointType (omitting unknown type).
const QStringList types = {
tr("File name and line number"),
tr("Function name"),
tr("Break on memory address"),
tr("Break when C++ exception is thrown"),
tr("Break when C++ exception is caught"),
tr("Break when function \"main\" starts"),
tr("Break when a new process is forked"),
tr("Break when a new process is executed"),
tr("Break when a system call is executed"),
tr("Break on data access at fixed address"),
tr("Break on data access at address given by expression"),
tr("Break on QML signal emit"),
tr("Break when JavaScript exception is thrown")
tr("File Name and Line Number"),
tr("Function Name"),
tr("Break on Memory Address"),
tr("Break When C++ Exception Is Thrown"),
tr("Break When C++ Exception Is Caught"),
tr("Break When Function \"main\" Starts"),
tr("Break When a New Process Is Forked"),
tr("Break When a New Process Is Executed"),
tr("Break When a System Call Is Executed"),
tr("Break on Data Access at Fixed Address"),
tr("Break on Data Access at Address Given by Expression"),
tr("Break on QML Signal Emit"),
tr("Break When JavaScript Exception Is Thrown")
};
// We don't list UnknownBreakpointType, so 1 less:
QTC_CHECK(types.size() + 1 == LastBreakpointType);

View File

@@ -115,13 +115,11 @@ QWidget *CommonOptionsPage::widget()
"will automatically open views associated with the current location.") + QLatin1Char('\n');
auto checkBoxCloseSourceBuffersOnExit = new QCheckBox(behaviorBox);
checkBoxCloseSourceBuffersOnExit->setText(tr("Close temporary source views on debugger exit"));
checkBoxCloseSourceBuffersOnExit->setToolTip(t + tr("Select this option to close "
"automatically opened source views when the debugger exits."));
checkBoxCloseSourceBuffersOnExit->setToolTip(t + tr("Closes automatically opened source views when the debugger exits."));
auto checkBoxCloseMemoryBuffersOnExit = new QCheckBox(behaviorBox);
checkBoxCloseMemoryBuffersOnExit->setText(tr("Close temporary memory views on debugger exit"));
checkBoxCloseMemoryBuffersOnExit->setToolTip(t + tr("Select this option to close "
"automatically opened memory views when the debugger exits."));
checkBoxCloseMemoryBuffersOnExit->setToolTip(t + tr("Closes automatically opened memory views when the debugger exits."));
auto checkBoxSwitchModeOnExit = new QCheckBox(behaviorBox);
checkBoxSwitchModeOnExit->setText(tr("Switch to previous mode on debugger exit"));