summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/commonoptionspage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/commonoptionspage.cpp')
-rw-r--r--src/plugins/debugger/commonoptionspage.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/debugger/commonoptionspage.cpp b/src/plugins/debugger/commonoptionspage.cpp
index 1b94f7c22f..b207f56a1e 100644
--- a/src/plugins/debugger/commonoptionspage.cpp
+++ b/src/plugins/debugger/commonoptionspage.cpp
@@ -200,6 +200,24 @@ bool CommonOptionsPage::matches(const QString &s) const
return m_searchKeywords.contains(s, Qt::CaseInsensitive);
}
+QString CommonOptionsPage::msgSetBreakpointAtFunction(const char *function)
+{
+ return tr("Stop when %1() is called").arg(QLatin1String(function));
+}
+
+QString CommonOptionsPage::msgSetBreakpointAtFunctionToolTip(const char *function,
+ const QString &hint)
+{
+ QString result = QLatin1String("<html><head/><body>");
+ result += tr("Always add a breakpoint on the <i>%1()</i> function.").arg(QLatin1String(function));
+ if (!hint.isEmpty()) {
+ result += QLatin1String("<br>");
+ result += hint;
+ }
+ result += QLatin1String("</body></html>");
+ return result;
+}
+
///////////////////////////////////////////////////////////////////////
//
// LocalsAndExpressionsOptionsPage