Sets the focus for widget in Plasma::Dialog on show

svn path=/trunk/KDE/kdelibs/; revision=930557
This commit is contained in:
Ivan Čukić 2009-02-23 20:15:11 +00:00
parent 4b8bebf239
commit bb3ebe644f

View File

@ -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);
}