qshapedpixmapdndwindow.cpp: fix build with '-qreal float'
Change-Id: I57a0c8cd7cd10f122dfe81e25c14f141b6f81d57 Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
parent
c599e7db7e
commit
be5e9247e9
@ -91,7 +91,7 @@ void QShapedPixmapWindow::updateGeometry(const QPoint &pos)
|
||||
{
|
||||
QSize size(1, 1);
|
||||
if (!m_pixmap.isNull()) {
|
||||
size = qFuzzyCompare(m_pixmap.devicePixelRatio(), 1.0)
|
||||
size = qFuzzyCompare(m_pixmap.devicePixelRatio(), qreal(1.0))
|
||||
? m_pixmap.size()
|
||||
: (QSizeF(m_pixmap.size()) / m_pixmap.devicePixelRatio()).toSize();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user