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:
Aaron J. Seigo 2010-02-24 11:56:47 +00:00
parent a4ba4faecd
commit a40b9d71f3

View File

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