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=/trunk/KDE/kdelibs/; revision=1095481
This commit is contained in:
Aaron J. Seigo 2010-02-24 11:56:18 +00:00
parent 65ee24a2a3
commit 7fb501467a

View File

@ -253,7 +253,11 @@ void Label::resizeEvent(QGraphicsSceneResizeEvent *event)
void Label::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
QGraphicsProxyWidget::mousePressEvent(event);
event->accept();
//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();
}
}
void Label::mouseMoveEvent(QGraphicsSceneMouseEvent *event)