if a tooltip, do as tooltip do

The fake tooltip duplication is not nice.
This commit is contained in:
mae
2010-04-09 13:48:43 +02:00
parent d49f1e34ea
commit 0c7312e05d
3 changed files with 4 additions and 3 deletions

View File

@@ -300,7 +300,8 @@ FunctionArgumentWidget::FunctionArgumentWidget():
connect(downArrow, SIGNAL(clicked()), SLOT(nextPage()));
setTextFormat(Qt::RichText);
setMargin(1);
setMargin(1 + style()->pixelMetric(QStyle::PM_ToolTipLabelFrameWidth, 0, this));
setIndent(1);
qApp->installEventFilter(this);
}