From 5f4faba583ce674131df163187bd3be03cf411f8 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 3 Jun 2011 14:01:49 +0200 Subject: Remove out-of-date TODOs. --- src/widgets/kernel/qwidget_qpa.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/widgets/kernel/qwidget_qpa.cpp') diff --git a/src/widgets/kernel/qwidget_qpa.cpp b/src/widgets/kernel/qwidget_qpa.cpp index 8764f633f1..4bfd6f19a7 100644 --- a/src/widgets/kernel/qwidget_qpa.cpp +++ b/src/widgets/kernel/qwidget_qpa.cpp @@ -153,7 +153,6 @@ void QWidget::destroy(bool destroyWindow, bool destroySubWindows) if ((windowType() == Qt::Popup)) qApp->d_func()->closePopup(this); - //### we don't have proper focus event handling yet if (this == QApplicationPrivate::active_window) QApplication::setActiveWindow(0); @@ -472,12 +471,7 @@ void QWidgetPrivate::hide_sys() } if (QWindow *window = q->windowHandle()) { window->setVisible(false); - } - - //### we don't yet have proper focus event handling - if (q == QApplicationPrivate::active_window) - QApplication::setActiveWindow(0); - + } } void QWidgetPrivate::setMaxWindowState_helper() -- cgit v1.2.3