diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-10-31 15:51:47 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-03 15:37:51 +0000 |
commit | 7d5fe797061c25d85ec4d7a91b9f827763c8851e (patch) | |
tree | d65b875ce57714834a1aea008062d7d6815ff6cd /src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h | |
parent | e180ab18c1e5dabcbf5965325fb957bd745d4e97 (diff) |
Clean up handling of opaqueness in the SW renderer
And check whether nine patch pixmaps are opaque as well.
Change-Id: I23f2cb675b923eace849a1c0ad71efe1446c86c4
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Volker Krause <volker.krause@kdab.com>
Diffstat (limited to 'src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h')
-rw-r--r-- | src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h b/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h index 9f1913205b..114137fb55 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h @@ -133,6 +133,8 @@ public: QRectF bounds() const; + bool isOpaque() const { return !m_pixmap.hasAlphaChannel(); } + private: QPixmap m_pixmap; QRectF m_bounds; |