forked from qt-creator/qt-creator
Valgrind: Fix UI text
- Fix typo in product name - Fix grammar issue - Use standard phrasing - Fix capitalization Change-Id: I0456c60943b51b19d5f03fb2908a7cc5af1f3595 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -239,7 +239,7 @@ CallgrindTool::CallgrindTool(QObject *parent)
|
|||||||
m_stopAction = Debugger::createStopAction();
|
m_stopAction = Debugger::createStopAction();
|
||||||
|
|
||||||
ActionDescription desc;
|
ActionDescription desc;
|
||||||
desc.setToolTip(tr("Valgrind Function Profile uses the "
|
desc.setToolTip(tr("Valgrind Function Profiler uses the "
|
||||||
"Callgrind tool to record function calls when a program runs."));
|
"Callgrind tool to record function calls when a program runs."));
|
||||||
|
|
||||||
if (!Utils::HostOsInfo::isWindowsHost()) {
|
if (!Utils::HostOsInfo::isWindowsHost()) {
|
||||||
@@ -431,7 +431,7 @@ CallgrindTool::CallgrindTool(QObject *parent)
|
|||||||
|
|
||||||
// Show costs relative to parent
|
// Show costs relative to parent
|
||||||
m_costRelativeToParent = new QAction(tr("Relative Costs to Parent"), this);
|
m_costRelativeToParent = new QAction(tr("Relative Costs to Parent"), this);
|
||||||
m_costRelativeToParent->setToolTip(tr("Show costs relative to parent functions inclusive cost."));
|
m_costRelativeToParent->setToolTip(tr("Show costs relative to parent function's inclusive cost."));
|
||||||
m_costRelativeToParent->setCheckable(true);
|
m_costRelativeToParent->setCheckable(true);
|
||||||
connect(m_costRelativeToParent, &QAction::toggled, this, &CallgrindTool::updateCostFormat);
|
connect(m_costRelativeToParent, &QAction::toggled, this, &CallgrindTool::updateCostFormat);
|
||||||
group->addAction(m_costRelativeToParent);
|
group->addAction(m_costRelativeToParent);
|
||||||
@@ -456,7 +456,7 @@ CallgrindTool::CallgrindTool(QObject *parent)
|
|||||||
|
|
||||||
// Shorter template signature
|
// Shorter template signature
|
||||||
action = m_shortenTemplates = new QAction(QLatin1String("<>"), this);
|
action = m_shortenTemplates = new QAction(QLatin1String("<>"), this);
|
||||||
action->setToolTip(tr("This removes template parameter lists when displaying function names."));
|
action->setToolTip(tr("Remove template parameter lists when displaying function names."));
|
||||||
action->setCheckable(true);
|
action->setCheckable(true);
|
||||||
connect(action, &QAction::toggled, &m_dataModel, &DataModel::setShortenTemplates);
|
connect(action, &QAction::toggled, &m_dataModel, &DataModel::setShortenTemplates);
|
||||||
connect(action, &QAction::toggled, settings, &ValgrindGlobalSettings::setShortenTemplates);
|
connect(action, &QAction::toggled, settings, &ValgrindGlobalSettings::setShortenTemplates);
|
||||||
@@ -850,7 +850,7 @@ void CallgrindTool::requestContextMenu(TextEditorWidget *widget, int line, QMenu
|
|||||||
foreach (CallgrindTextMark *textMark, m_textMarks) {
|
foreach (CallgrindTextMark *textMark, m_textMarks) {
|
||||||
if (textMark->fileName() == widget->textDocument()->filePath().toString() && textMark->lineNumber() == line) {
|
if (textMark->fileName() == widget->textDocument()->filePath().toString() && textMark->lineNumber() == line) {
|
||||||
const Function *func = textMark->function();
|
const Function *func = textMark->function();
|
||||||
QAction *action = menu->addAction(tr("Select this Function in the Analyzer Output"));
|
QAction *action = menu->addAction(tr("Select This Function in the Analyzer Output"));
|
||||||
connect(action, &QAction::triggered, this, [this, func] { selectFunction(func); });
|
connect(action, &QAction::triggered, this, [this, func] { selectFunction(func); });
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user