diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2010-04-22 13:16:32 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2010-04-22 13:16:32 (GMT) |
commit | 535161b217a9fb5117803cbff1ddcc97242c10f3 (patch) | |
tree | ac211dd553dfb167b6539a715ddd9bf737231ea1 /src/gui/painting/qwindowsurface.cpp | |
parent | bf9b927dd7143ef02591308b1cecc0c44417deb9 (diff) | |
download | Qt-535161b217a9fb5117803cbff1ddcc97242c10f3.zip Qt-535161b217a9fb5117803cbff1ddcc97242c10f3.tar.gz Qt-535161b217a9fb5117803cbff1ddcc97242c10f3.tar.bz2 |
Avoid copying code.
Diffstat (limited to 'src/gui/painting/qwindowsurface.cpp')
-rw-r--r-- | src/gui/painting/qwindowsurface.cpp | 8 |
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()); |