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:
parent
65ee24a2a3
commit
7fb501467a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user