propagate cursor changes to the native widget
svn path=/trunk/KDE/kdelibs/; revision=1111916
This commit is contained in:
parent
d388ecebcb
commit
5ed9e14f0e
@ -348,6 +348,15 @@ bool Label::event(QEvent *event)
|
||||
return QGraphicsProxyWidget::event(event);
|
||||
}
|
||||
|
||||
QVariant Label::itemChange(GraphicsItemChange change, const QVariant & value)
|
||||
{
|
||||
if (change == QGraphicsItem::ItemCursorHasChanged) {
|
||||
nativeWidget()->setCursor(cursor());
|
||||
}
|
||||
|
||||
return QGraphicsWidget::itemChange(change, value);
|
||||
}
|
||||
|
||||
} // namespace Plasma
|
||||
|
||||
#include <label.moc>
|
||||
|
@ -169,6 +169,7 @@ protected:
|
||||
QWidget *widget);
|
||||
void changeEvent(QEvent *event);
|
||||
bool event(QEvent *event);
|
||||
QVariant itemChange(GraphicsItemChange change, const QVariant & value);
|
||||
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user