summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-12-17 06:58:43 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-04 14:18:24 (GMT)
commitfc79d664af9fe3396badac8d1829623118e827fc (patch)
tree14a67037818584c1208443349900befd28f706be
parenta7fc0e8bad3bd020ece5fa70f0462bcaf59b3d77 (diff)
downloadQt-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.cpp3
-rw-r--r--src/plugins/platforms/testlite/qtestlitecursor.h1
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;
};