projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27d7d7c
)
Remove toRect_normalized().
author
Robin Burchell
<robin+qt@viroteck.net>
Sat, 23 Jun 2012 19:28:22 +0000
(21:28 +0200)
committer
Qt by Nokia
<qt-info@nokia.com>
Tue, 26 Jun 2012 12:42:03 +0000
(14:42 +0200)
Seems to have been unused since qt4's
fde7475bcf9c10522a8170e6eb8fb9a8fadc21cd
.
Change-Id: I7ec88fb4ca8c1ffda469a1c048b4fea17ff042bc
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/painting/qpaintengine_raster.cpp
patch
|
blob
|
history
diff --git
a/src/gui/painting/qpaintengine_raster.cpp
b/src/gui/painting/qpaintengine_raster.cpp
index
e73fb5e
..
dcf107b
100644
(file)
--- a/
src/gui/painting/qpaintengine_raster.cpp
+++ b/
src/gui/painting/qpaintengine_raster.cpp
@@
-2097,17
+2097,6
@@
void QRasterPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pixmap, cons
}
}
-// assumes that rect has positive width and height
-static inline const QRect toRect_normalized(const QRectF &rect)
-{
- const int x = qRound(rect.x());
- const int y = qRound(rect.y());
- const int w = int(rect.width() + qreal(0.5));
- const int h = int(rect.height() + qreal(0.5));
-
- return QRect(x, y, w, h);
-}
-
static inline int fast_ceil_positive(const qreal &v)
{
const int iv = int(v);