Sets the focus for widget in Plasma::Dialog on show
svn path=/trunk/KDE/kdelibs/; revision=930557
This commit is contained in:
parent
4b8bebf239
commit
bb3ebe644f
@ -421,6 +421,14 @@ void Dialog::showEvent(QShowEvent * event)
|
||||
d->view->centerOn(d->widget);
|
||||
}
|
||||
|
||||
if (d->view) {
|
||||
d->view->setFocus();
|
||||
}
|
||||
|
||||
if (d->widget) {
|
||||
d->widget->setFocus();
|
||||
}
|
||||
|
||||
emit dialogVisible(true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user