hide the itembackground when the mouse leaes the toolbox
svn path=/trunk/KDE/kdelibs/; revision=1118442
This commit is contained in:
parent
be75656033
commit
9c0e6c20fd
@ -118,6 +118,16 @@ class EmptyGraphicsItem : public QGraphicsWidget
|
||||
return false;
|
||||
}
|
||||
|
||||
void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||
{
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
||||
{
|
||||
m_itemBackground->hide();
|
||||
}
|
||||
|
||||
private:
|
||||
QRectF m_rect;
|
||||
Plasma::FrameSvg *m_background;
|
||||
|
Loading…
Reference in New Issue
Block a user