diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-10-16 10:00:20 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-10-16 10:00:20 (GMT) |
commit | 5f184a0c3485f9c8e35d3cc7c3c2f715f0f94111 (patch) | |
tree | ab82e8e73f81342f2aaf5c26823960c7507359d3 /src/gui | |
parent | 7e5724b7d4632899af2e84856dd7d6f2a1771ee0 (diff) | |
parent | 7644b352297e9fd1ee271421e9ce8b7256946b12 (diff) | |
download | Qt-5f184a0c3485f9c8e35d3cc7c3c2f715f0f94111.zip Qt-5f184a0c3485f9c8e35d3cc7c3c2f715f0f94111.tar.gz Qt-5f184a0c3485f9c8e35d3cc7c3c2f715f0f94111.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-widget-team into 4.6
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/itemviews/qtableview.cpp | 2 | ||||
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/itemviews/qtableview.cpp b/src/gui/itemviews/qtableview.cpp index a610b73..2a937f1 100644 --- a/src/gui/itemviews/qtableview.cpp +++ b/src/gui/itemviews/qtableview.cpp @@ -1599,7 +1599,7 @@ QModelIndex QTableView::moveCursor(CursorAction cursorAction, Qt::KeyboardModifi break; visualColumn = right + 1; if (visualRow == 0) { - wrapped == true; + wrapped = true; visualRow = bottom; } else { --visualRow; diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index b990fe2..5476e36 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -2662,7 +2662,10 @@ void QApplicationPrivate::dispatchEnterLeave(QWidget* enter, QWidget* leave) { if (!isAlien(w)) break; if (w->testAttribute(Qt::WA_SetCursor)) { - parentOfLeavingCursor = w->parentWidget(); + QWidget *parent = w->parentWidget(); + while (parent && parent->d_func()->data.in_destructor) + parent = parent->parentWidget(); + parentOfLeavingCursor = parent; //continue looping, we need to find the downest alien widget with a cursor. // (downest on the screen) } |