Skip to content

Commit

Permalink
change text from normal to richText in the tooltips.
Browse files Browse the repository at this point in the history
(Cherry picked from commit 171e041)

Conflicts:
	src/platform/parser/parsermanager.cpp
  • Loading branch information
fcecconi committed Jan 16, 2013
1 parent 39c6ef4 commit f1cac0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/common/style.h
Expand Up @@ -32,4 +32,7 @@ static const char negativeBackground[] = "background: #FFC0C0;";
static const char highIpNumberBackground[] = "background: #FFDCA8;";
static const char neutralBackground[] = "background: #fff;";

static const char startRichTextTags[] = "<p><font>";
static const char endRichTextTags[] = "</font></p>";

#endif
6 changes: 3 additions & 3 deletions src/platform/parser/parsermanager.cpp
Expand Up @@ -440,7 +440,7 @@ void ParserManager::showParserObj(int hostIndex)
root->setSizeHint(0, QSize(22, 22));
root->setIcon(0, QIcon(QString::fromUtf8(":/images/images/messagebox_info.png")));
root->setText(0, token);
root->setToolTip(0, token);
root->setToolTip(0, startRichTextTags + token + endRichTextTags);
}

QString noDes = tr("No description");
Expand Down Expand Up @@ -601,7 +601,7 @@ void ParserManager::showParserObj(int hostIndex)
}

item->setText(0, value);
item->setToolTip(0, value);
item->setToolTip(0, startRichTextTags + value + endRichTextTags);
item->setIcon(0, QIcon(QString::fromUtf8(":/images/images/messagebox_info.png")));
}
}
Expand All @@ -623,7 +623,7 @@ void ParserManager::showParserObj(int hostIndex)
root->setSizeHint(0, QSize(22, 22));
root->setIcon(0, QIcon(QString::fromUtf8(":/images/images/book.png")));
root->setText(0, token);
root->setToolTip(0, token);
root->setToolTip(0, startRichTextTags + token + endRichTextTags);
}

// Show scan error
Expand Down

0 comments on commit f1cac0d

Please sign in to comment.