summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsscreen.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-02 12:18:57 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-05 08:56:35 +0000
commitae554cb8c2ba41c4285951abb9c9b0bc9a7d47e5 (patch)
treeafc59c7d2f934f26e465857362e5dbf5aca14276 /src/plugins/platforms/windows/qwindowsscreen.cpp
parenteee4c6f190d427ab6d5a9acf9fe6327df6cf8c2d (diff)
Windows plugin: Simplify cursor code in platform screen.
Change the shared pointer to store a QPlatformCursor instead of QWindowsCursor, removing the dependency of qwindowsscreen.h on qwindowscursor.h. Change-Id: I8b4bbc9fd4d5046c30ac3784f14229a9cc6d8dc6 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsscreen.cpp')
-rw-r--r--src/plugins/platforms/windows/qwindowsscreen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/platforms/windows/qwindowsscreen.cpp b/src/plugins/platforms/windows/qwindowsscreen.cpp
index 4ab4ac352e..28e2aadf14 100644
--- a/src/plugins/platforms/windows/qwindowsscreen.cpp
+++ b/src/plugins/platforms/windows/qwindowsscreen.cpp
@@ -191,13 +191,13 @@ static QDebug operator<<(QDebug dbg, const QWindowsScreenData &d)
}
// Return the cursor to be shared by all screens (virtual desktop).
-static inline QSharedPointer<QWindowsCursor> sharedCursor()
+static inline QSharedPointer<QPlatformCursor> sharedCursor()
{
#ifndef QT_NO_CURSOR
if (const QScreen *primaryScreen = QGuiApplication::primaryScreen())
- return static_cast<const QWindowsScreen *>(primaryScreen->handle())->windowsCursor();
+ return static_cast<const QWindowsScreen *>(primaryScreen->handle())->cursorPtr();
#endif
- return QSharedPointer<QWindowsCursor>(new QWindowsCursor);
+ return QSharedPointer<QPlatformCursor>(new QWindowsCursor);
}
/*!