diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-06-20 14:47:12 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-06-25 20:08:26 +0200 |
commit | 244ff3311983112709643e789f42d1603ddbd401 (patch) | |
tree | 32dbcc30d8951f3dbb0de6614e58e9eb696e5112 /examples/widgets/widgets/styles/norwegianwoodstyle.h | |
parent | 530c6903a449f44cc9c3fc578d5394c0eed8ddec (diff) |
styles example: Use QImage instead of QPixmap in NorwegianWoodStyle
Using QImage allows creating the style before the application has
been created, and is the more modern API.
No changes to the documentation needed.
Change-Id: Ifa0e5fa1113802fca18fbd45bb3c0a5ba1dbfeab
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
Diffstat (limited to 'examples/widgets/widgets/styles/norwegianwoodstyle.h')
-rw-r--r-- | examples/widgets/widgets/styles/norwegianwoodstyle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/widgets/styles/norwegianwoodstyle.h b/examples/widgets/widgets/styles/norwegianwoodstyle.h index c41d81d23a..5a1783eb4d 100644 --- a/examples/widgets/widgets/styles/norwegianwoodstyle.h +++ b/examples/widgets/widgets/styles/norwegianwoodstyle.h @@ -80,7 +80,7 @@ public: private: static void setTexture(QPalette &palette, QPalette::ColorRole role, - const QPixmap &pixmap); + const QImage &image); static QPainterPath roundRectPath(const QRect &rect); }; //! [0] |