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);
|
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
|
} // namespace Plasma
|
||||||
|
|
||||||
#include <label.moc>
|
#include <label.moc>
|
||||||
|
@ -169,6 +169,7 @@ protected:
|
|||||||
QWidget *widget);
|
QWidget *widget);
|
||||||
void changeEvent(QEvent *event);
|
void changeEvent(QEvent *event);
|
||||||
bool event(QEvent *event);
|
bool event(QEvent *event);
|
||||||
|
QVariant itemChange(GraphicsItemChange change, const QVariant & value);
|
||||||
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
|
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user