forked from qt-creator/qt-creator
debugger: fix the ShowQtNamespace option in the Locals & Watchers window
This commit is contained in:
@@ -315,17 +315,6 @@ static void formatToolTipRow(QTextStream &str,
|
||||
<< htmlEscape(value) << "</td></tr>";
|
||||
}
|
||||
|
||||
static QString typeToolTip(const WatchData &wd)
|
||||
{
|
||||
if (wd.displayedType.isEmpty())
|
||||
return wd.type;
|
||||
QString rc = wd.displayedType;
|
||||
rc += QLatin1String(" (");
|
||||
rc += wd.type;
|
||||
rc += QLatin1Char(')');
|
||||
return rc;
|
||||
}
|
||||
|
||||
QString WatchData::toToolTip() const
|
||||
{
|
||||
if (!valuetooltip.isEmpty())
|
||||
@@ -335,7 +324,8 @@ QString WatchData::toToolTip() const
|
||||
str << "<html><body><table>";
|
||||
formatToolTipRow(str, tr("Name"), name);
|
||||
formatToolTipRow(str, tr("Expression"), exp);
|
||||
formatToolTipRow(str, tr("Type"), typeToolTip(*this));
|
||||
formatToolTipRow(str, tr("Internal Type"), type);
|
||||
formatToolTipRow(str, tr("Displayed Type"), displayedType);
|
||||
QString val = value;
|
||||
if (value.size() > 1000) {
|
||||
val.truncate(1000);
|
||||
|
||||
Reference in New Issue
Block a user