diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-29 16:09:46 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-08-03 16:32:30 +0200 |
commit | fb96109bbc2ec5d83171a70d6c164d79695d2ddd (patch) | |
tree | ba31b5ab614cd57695b43860ddae3eae6e508a54 /src/quick/items/qquickwindow.h | |
parent | 6826b2decc21cbf390076efa3a0d6c412563f94a (diff) |
Add type safe native texture accessors
Following the pattern from QtGui.
Task-number: QTBUG-85239
Change-Id: I07b4456028d0f45223ad10e55ce65f423bab6a9b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/quick/items/qquickwindow.h')
-rw-r--r-- | src/quick/items/qquickwindow.h | 11 |
1 files changed, 0 insertions, 11 deletions
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; |