1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 11:47:24 +01:00

refs #1457 tooltips for rule options seem to be broken

This commit is contained in:
Illya Yalovoy 2010-05-21 21:23:19 +00:00
parent e9d72340be
commit aa899b1d5c

View File

@ -2463,8 +2463,9 @@ bool RuleSetView::showToolTip(QEvent *event)
Rule* rule = node->rule;
if (PolicyRule::cast(rule)!=NULL )
{
if (!isDefaultPolicyRuleOptions(rule->getOptionsObject()))
if (!isDefaultPolicyRuleOptions(rule->getOptionsObject())) {
toolTip = FWObjectPropertiesFactory::getPolicyRuleOptions(rule);
}
}
if (NATRule::cast(rule)!=NULL )
{
@ -2495,7 +2496,6 @@ bool RuleSetView::showToolTip(QEvent *event)
if (toolTip.isEmpty())
{
qDebug() << "empty!";
QToolTip::hideText();
return true;
}
@ -2513,7 +2513,6 @@ bool RuleSetView::showToolTip(QEvent *event)
viewport()->mapToGlobal(cr.bottomRight()));
QToolTip::showText(mapToGlobal( he->pos() ), toolTip, this, global);
qDebug() << "show: [" << toolTip << "]";
return true;
}