give d->widget the focus when the focus arrives on us
svn path=/trunk/KDE/kdelibs/; revision=1030582
This commit is contained in:
parent
a73a22d713
commit
7387d79cbd
@ -380,6 +380,15 @@ QWidget *ScrollWidget::nativeWidget() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ScrollWidget::focusInEvent(QFocusEvent *event)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
|
||||
if (d->widget) {
|
||||
d->widget->setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void ScrollWidget::resizeEvent(QGraphicsSceneResizeEvent *event)
|
||||
{
|
||||
|
@ -162,6 +162,7 @@ protected:
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
|
||||
void wheelEvent(QGraphicsSceneWheelEvent *event);
|
||||
bool eventFilter(QObject *watched, QEvent *event);
|
||||
void focusInEvent(QFocusEvent *event);
|
||||
|
||||
private:
|
||||
ScrollWidgetPrivate * const d;
|
||||
|
Loading…
x
Reference in New Issue
Block a user