since we can't do a hit test, only accept the mouse event if text selection is turned on; when Qt is fixed, we can get rid of this
svn path=/branches/KDE/4.4/kdelibs/; revision=1095482
This commit is contained in:
parent
a4ba4faecd
commit
a40b9d71f3
@ -257,7 +257,11 @@ void Label::resizeEvent(QGraphicsSceneResizeEvent *event)
|
|||||||
void Label::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
void Label::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
QGraphicsProxyWidget::mousePressEvent(event);
|
QGraphicsProxyWidget::mousePressEvent(event);
|
||||||
|
//FIXME: when QTextControl accept()s mouse press events (as of Qt 4.6.2, it processes them
|
||||||
|
//but never marks them as accepted) the following event->accept() can be removed
|
||||||
|
if (d->textSelectable) {
|
||||||
event->accept();
|
event->accept();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Label::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
void Label::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user