forked from qt-creator/qt-creator
Utils: Start simplification of tooltip handling
There's a bit too much unneeded flexibility in there, requiring extra boiler-plate code on the user side. Change-Id: I34d03838fb1cd3182fcbb93bf65158ebfc7e2bce Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
#include <utils/stylehelper.h>
|
||||
#include <utils/stringutils.h>
|
||||
#include <utils/tooltip/tooltip.h>
|
||||
#include <utils/tooltip/tipcontents.h>
|
||||
#include <utils/theme/theme.h>
|
||||
|
||||
#include <QPainter>
|
||||
@@ -82,7 +81,7 @@ bool FancyToolButton::event(QEvent *e)
|
||||
case QEvent::ToolTip:
|
||||
{
|
||||
QHelpEvent *he = static_cast<QHelpEvent *>(e);
|
||||
ToolTip::show(mapToGlobal(he->pos()), TextContent(toolTip()), this);
|
||||
ToolTip::show(mapToGlobal(he->pos()), toolTip(), this);
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user