diff options
author | Kai Koehne <kai.koehne@digia.com> | 2013-02-18 12:11:54 +0100 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-02-19 14:22:30 +0100 |
commit | bad4c388a2e84214d213a4f59b4d6a559a25b9e4 (patch) | |
tree | b7d7e5681d9b2de584fbbc4875f5bfca5430566a /src/plugins/debugger/stackframe.cpp | |
parent | cf026c9f87120b4af331d58bd047af62edbb6ab9 (diff) | |
download | qt-creator-bad4c388a2e84214d213a4f59b4d6a559a25b9e4.tar.gz |
Debugger: Don't tell about dbg packages on Windows
Change-Id: I66c1d8612fedaacb8f457a219f930a7ee0989c23
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/debugger/stackframe.cpp')
-rw-r--r-- | src/plugins/debugger/stackframe.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/plugins/debugger/stackframe.cpp b/src/plugins/debugger/stackframe.cpp index 0884eb0cf1..f7ceb9f4ac 100644 --- a/src/plugins/debugger/stackframe.cpp +++ b/src/plugins/debugger/stackframe.cpp @@ -36,6 +36,8 @@ #include <QTextStream> #include <QCoreApplication> +#include <utils/hostosinfo.h> + namespace Debugger { namespace Internal { @@ -103,6 +105,7 @@ QString StackFrame::toToolTip() const str << "</table>"; str <<"<br> <br><i>" << tr("Note:") << " </i> "; + bool showDistributionNote = false; if (isUsable()) { str << tr("Sources for this frame are available.<br>Double-click on " "the file name to open an editor."); @@ -110,13 +113,17 @@ QString StackFrame::toToolTip() const str << tr("Binary debug information is not accessible for this " "frame. This either means the core was not compiled " "with debug information, or the debug information is not " - "accessible. Note that most distributions ship debug information " - "in separate packages."); + "accessible."); + showDistributionNote = true; } else { str << tr("Binary debug information is accessible for this " - "frame. However, matching sources have not been found. " - "Note that some distributions ship debug sources " - "in separate packages."); + "frame. However, matching sources have not been found."); + showDistributionNote = true; + } + if (!Utils::HostOsInfo::isWindowsHost() && showDistributionNote) { + str << QLatin1String(" ") << + tr("Note that most distributions ship debug information " + "in separate packages."); } str << "</body></html>"; |