Clear qt_tablet_target in ~QWidgetWindow.

Task-number: QTBUG-34007

Change-Id: If67563e5d9c4040256b58521773736e14db6fbaf
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
bb10
Friedemann Kleint 2013-10-18 17:24:24 +03:00 committed by The Qt Project
parent c4a51166f5
commit 4dab27933d
2 changed files with 7 additions and 0 deletions

View File

@ -86,6 +86,12 @@ QWidgetWindow::QWidgetWindow(QWidget *widget)
connect(m_widget, &QObject::objectNameChanged, this, &QWidgetWindow::updateObjectName);
}
QWidgetWindow::~QWidgetWindow()
{
if (m_widget == qt_tablet_target)
qt_tablet_target = 0;
}
#ifndef QT_NO_ACCESSIBILITY
QAccessibleInterface *QWidgetWindow::accessibleRoot() const
{

View File

@ -58,6 +58,7 @@ class QWidgetWindow : public QWindow
Q_OBJECT
public:
QWidgetWindow(QWidget *widget);
~QWidgetWindow();
QWidget *widget() const { return m_widget; }
#ifndef QT_NO_ACCESSIBILITY