summaryrefslogtreecommitdiffstats
path: root/src/gui
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
parentbf9b927dd7143ef02591308b1cecc0c44417deb9 (diff)
downloadQt-535161b217a9fb5117803cbff1ddcc97242c10f3.zip
Qt-535161b217a9fb5117803cbff1ddcc97242c10f3.tar.gz
Qt-535161b217a9fb5117803cbff1ddcc97242c10f3.tar.bz2
Avoid copying code.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qapplication_lite.cpp2
-rw-r--r--src/gui/painting/qwindowsurface.cpp8
2 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_lite.cpp b/src/gui/kernel/qapplication_lite.cpp
index 867c2dc..fae7663 100644
--- a/src/gui/kernel/qapplication_lite.cpp
+++ b/src/gui/kernel/qapplication_lite.cpp
@@ -627,7 +627,7 @@ void QApplicationPrivate::processMouseEvent(QWindowSystemInterface::MouseEvent *
//even if we're blocked by modality, we should deliver the mouse release event..
//### this code is not completely correct: multiple buttons can be pressed simultaneously
if (!(implicit_mouse_grabber && buttons == Qt::NoButton)) {
- qDebug() << "modal blocked mouse event to" << tlw;
+ //qDebug() << "modal blocked mouse event to" << tlw;
return;
}
}
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());