summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsscreen.h
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.h
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.h')
-rw-r--r--src/plugins/platforms/windows/qwindowsscreen.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/platforms/windows/qwindowsscreen.h b/src/plugins/platforms/windows/qwindowsscreen.h
index b561f73804..7352c45777 100644
--- a/src/plugins/platforms/windows/qwindowsscreen.h
+++ b/src/plugins/platforms/windows/qwindowsscreen.h
@@ -34,8 +34,8 @@
#ifndef QWINDOWSSCREEN_H
#define QWINDOWSSCREEN_H
-#include "qwindowscursor.h"
#include "qwindowsscaling.h"
+#include "qtwindowsglobal.h"
#ifdef Q_OS_WINCE
# include "qplatformfunctions_wince.h"
#endif
@@ -75,7 +75,7 @@ class QWindowsScreen : public QPlatformScreen
{
public:
#ifndef QT_NO_CURSOR
- typedef QSharedPointer<QWindowsCursor> WindowsCursorPtr;
+ typedef QSharedPointer<QPlatformCursor> CursorPtr;
#endif
explicit QWindowsScreen(const QWindowsScreenData &data);
@@ -105,8 +105,8 @@ public:
inline void handleChanges(const QWindowsScreenData &newData);
#ifndef QT_NO_CURSOR
- QPlatformCursor *cursor() const { return m_cursor.data(); }
- const WindowsCursorPtr &windowsCursor() const { return m_cursor; }
+ QPlatformCursor *cursor() const Q_DECL_OVERRIDE { return m_cursor.data(); }
+ const CursorPtr &cursorPtr() const { return m_cursor; }
#else
QPlatformCursor *cursor() const { return 0; }
#endif // !QT_NO_CURSOR
@@ -117,7 +117,7 @@ public:
private:
QWindowsScreenData m_data;
#ifndef QT_NO_CURSOR
- const WindowsCursorPtr m_cursor;
+ const CursorPtr m_cursor;
#endif
};