diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-12-17 06:58:43 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-01-04 14:18:24 (GMT) |
commit | fc79d664af9fe3396badac8d1829623118e827fc (patch) | |
tree | 14a67037818584c1208443349900befd28f706be | |
parent | a7fc0e8bad3bd020ece5fa70f0462bcaf59b3d77 (diff) | |
download | Qt-fc79d664af9fe3396badac8d1829623118e827fc.zip Qt-fc79d664af9fe3396badac8d1829623118e827fc.tar.gz Qt-fc79d664af9fe3396badac8d1829623118e827fc.tar.bz2 |
Remove current cursor optimization
It was broken since it didn't take care of the initial cursor.
-rw-r--r-- | src/plugins/platforms/testlite/qtestlitecursor.cpp | 3 | ||||
-rw-r--r-- | src/plugins/platforms/testlite/qtestlitecursor.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/platforms/testlite/qtestlitecursor.cpp b/src/plugins/platforms/testlite/qtestlitecursor.cpp index 4f3f0cb..e9e6eb7 100644 --- a/src/plugins/platforms/testlite/qtestlitecursor.cpp +++ b/src/plugins/platforms/testlite/qtestlitecursor.cpp @@ -71,8 +71,7 @@ void QTestLiteCursor::changeCursor(QCursor *cursor, QWidget *widget) return; int id = cursor->handle(); - if (id == currentCursor) - return; + Cursor c; if (!cursorMap.contains(id)) { if (cursor->shape() == Qt::BitmapCursor) diff --git a/src/plugins/platforms/testlite/qtestlitecursor.h b/src/plugins/platforms/testlite/qtestlitecursor.h index 15a5b2a..bb3549e 100644 --- a/src/plugins/platforms/testlite/qtestlitecursor.h +++ b/src/plugins/platforms/testlite/qtestlitecursor.h @@ -60,7 +60,6 @@ private: Cursor createCursorShape(int cshape); QTestLiteScreen *testLiteScreen() const; - int currentCursor; QMap<int, Cursor> cursorMap; }; |