diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-15 05:46:57 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-15 21:26:11 +0200 |
commit | 978a43ad4dbb069c037476ed0ef5978cc2db7a33 (patch) | |
tree | 3a018fd4fd54395824dd62a4ee60cbca806116d3 /src/widgets/kernel | |
parent | 6ca50b79bc736415e6e76b1dff2956eaca9f5236 (diff) |
Fix conversion warnings when setting alpha to QColor
Adapt to 5bb4baae0379d5903f547f0399be9620f5ab06a0.
Change-Id: Id65f87740f9de8e0d3624ff63c431dcad642f3a5
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r-- | src/widgets/kernel/qwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 1a861695af..8040560e7c 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -5388,7 +5388,7 @@ void QWidgetPrivate::drawWidget(QPaintDevice *pdev, const QRegion &rgn, const QP #endif QPainter p(q); QColor tint = q->palette().window().color(); - tint.setAlphaF(qreal(.6)); + tint.setAlphaF(.6f); p.fillRect(toBePainted.boundingRect(), tint); #ifndef QT_NO_OPENGL endBackingStorePainting(); |