equal
deleted
inserted
replaced
1313 // embedded widget calling setFocus(). ### Could be done with event |
1313 // embedded widget calling setFocus(). ### Could be done with event |
1314 // filter on FocusIn instead? |
1314 // filter on FocusIn instead? |
1315 return; |
1315 return; |
1316 } |
1316 } |
1317 |
1317 |
|
1318 d->proxyIsGivingFocus = true; |
|
1319 |
1318 switch (event->reason()) { |
1320 switch (event->reason()) { |
1319 case Qt::TabFocusReason: { |
1321 case Qt::TabFocusReason: { |
1320 if (QWidget *focusChild = d->findFocusChild(0, true)) |
1322 if (QWidget *focusChild = d->findFocusChild(0, true)) |
1321 focusChild->setFocus(event->reason()); |
1323 focusChild->setFocus(event->reason()); |
1322 break; |
1324 break; |
1326 focusChild->setFocus(event->reason()); |
1328 focusChild->setFocus(event->reason()); |
1327 break; |
1329 break; |
1328 default: |
1330 default: |
1329 if (d->widget && d->widget->focusWidget()) { |
1331 if (d->widget && d->widget->focusWidget()) { |
1330 d->widget->focusWidget()->setFocus(event->reason()); |
1332 d->widget->focusWidget()->setFocus(event->reason()); |
1331 return; |
|
1332 } |
1333 } |
1333 break; |
1334 break; |
1334 } |
1335 } |
|
1336 |
|
1337 d->proxyIsGivingFocus = false; |
1335 } |
1338 } |
1336 |
1339 |
1337 /*! |
1340 /*! |
1338 \reimp |
1341 \reimp |
1339 */ |
1342 */ |