From a23b71d2d020505a2bc11adbbcfb0516319291c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Wed, 27 Jul 2016 14:24:21 +0200 Subject: [PATCH] Remove QPlatformCursorPrivate It was unused. Change-Id: I890fe2512355a691d693a26b599797a7dc7b06e2 Reviewed-by: Laszlo Agocs --- src/gui/kernel/qplatformcursor.cpp | 10 ---------- src/gui/kernel/qplatformcursor.h | 8 -------- 2 files changed, 18 deletions(-) diff --git a/src/gui/kernel/qplatformcursor.cpp b/src/gui/kernel/qplatformcursor.cpp index c644d4769a..af0214e016 100644 --- a/src/gui/kernel/qplatformcursor.cpp +++ b/src/gui/kernel/qplatformcursor.cpp @@ -49,16 +49,6 @@ QT_BEGIN_NAMESPACE -QList QPlatformCursorPrivate::getInstances() -{ - QList result; - for (const QScreen *screen : qAsConst(QGuiApplicationPrivate::screen_list)) { - if (QPlatformCursor *cursor = screen->handle()->cursor()) - result.push_back(cursor); - } - return result; -} - /*! \class QPlatformCursor \since 5.0 diff --git a/src/gui/kernel/qplatformcursor.h b/src/gui/kernel/qplatformcursor.h index f9c1607663..dddd9e5831 100644 --- a/src/gui/kernel/qplatformcursor.h +++ b/src/gui/kernel/qplatformcursor.h @@ -76,13 +76,6 @@ private: QPoint hot; }; -class QPlatformCursor; - -class Q_GUI_EXPORT QPlatformCursorPrivate { -public: - static QList getInstances(); -}; - class Q_GUI_EXPORT QPlatformCursor : public QObject { public: QPlatformCursor(); @@ -96,7 +89,6 @@ public: virtual void setPos(const QPoint &pos); private: - Q_DECLARE_PRIVATE(QPlatformCursor) friend void qt_qpa_set_cursor(QWidget * w, bool force); friend class QApplicationPrivate; };