From fb96109bbc2ec5d83171a70d6c164d79695d2ddd Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 29 Jun 2020 16:09:46 +0200 Subject: Add type safe native texture accessors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Following the pattern from QtGui. Task-number: QTBUG-85239 Change-Id: I07b4456028d0f45223ad10e55ce65f423bab6a9b Reviewed-by: Tor Arne Vestbø --- src/quick/items/qquickwindow.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/quick/items/qquickwindow.h') diff --git a/src/quick/items/qquickwindow.h b/src/quick/items/qquickwindow.h index 2850bf7c2e..6af11dba39 100644 --- a/src/quick/items/qquickwindow.h +++ b/src/quick/items/qquickwindow.h @@ -113,11 +113,6 @@ public: }; Q_ENUM(TextRenderType) - enum NativeObjectType { - NativeObjectTexture - }; - Q_ENUM(NativeObjectType) - explicit QQuickWindow(QWindow *parent = nullptr); explicit QQuickWindow(QQuickRenderControl *renderControl); @@ -156,12 +151,6 @@ public: QSGTexture *createTextureFromImage(const QImage &image) const; QSGTexture *createTextureFromImage(const QImage &image, CreateTextureOptions options) const; - QSGTexture *createTextureFromNativeObject(NativeObjectType type, - quint64 nativeObjectHandle, - int nativeLayout, - const QSize &size, - CreateTextureOptions options = CreateTextureOption()) const; - void setColor(const QColor &color); QColor color() const; -- cgit v1.2.3