summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2010-04-22 13:16:32 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2010-04-22 13:16:32 (GMT)
commit535161b217a9fb5117803cbff1ddcc97242c10f3 (patch)
treeac211dd553dfb167b6539a715ddd9bf737231ea1 /src/gui/painting
parentbf9b927dd7143ef02591308b1cecc0c44417deb9 (diff)
downloadQt-535161b217a9fb5117803cbff1ddcc97242c10f3.zip
Qt-535161b217a9fb5117803cbff1ddcc97242c10f3.tar.gz
Qt-535161b217a9fb5117803cbff1ddcc97242c10f3.tar.bz2
Avoid copying code.
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qwindowsurface.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/painting/qwindowsurface.cpp b/src/gui/painting/qwindowsurface.cpp
index 7558cad..3b542bc 100644
--- a/src/gui/painting/qwindowsurface.cpp
+++ b/src/gui/painting/qwindowsurface.cpp
@@ -342,7 +342,13 @@ void QWindowSurface::setPartialUpdateSupport(bool enable)
d_ptr->partialUpdateSupport = enable;
}
-void qt_scrollRectInImage(QImage &img, const QRect &rect, const QPoint &offset)
+#ifdef Q_WS_LITE
+#define Q_EXPORT_SCROLLRECT Q_GUI_EXPORT
+#else
+#define Q_EXPORT_SCROLLRECT
+#endif
+
+void Q_EXPORT_SCROLLRECT qt_scrollRectInImage(QImage &img, const QRect &rect, const QPoint &offset)
{
// make sure we don't detach
uchar *mem = const_cast<uchar*>(const_cast<const QImage &>(img).bits());