summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Sorvig <msorvig@trolltech.com>2009-08-27 06:06:54 +0200
committerMorten Sorvig <msorvig@trolltech.com>2009-08-27 06:06:54 +0200
commit5a7f65faca6ee6a2a5ab03233c1baa9e7a239798 (patch)
treeb38d823fd973fca41ee98a2cc7ea50ec1fc75642
parent6f5303f8e4f8cc4af243df77424f735b45853cb0 (diff)
Dont scan images for equality
-rw-r--r--src/widgeteventhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgeteventhandler.cpp b/src/widgeteventhandler.cpp
index bdcd20c..f150394 100644
--- a/src/widgeteventhandler.cpp
+++ b/src/widgeteventhandler.cpp
@@ -264,12 +264,10 @@ void WidgetEventHandler::handleMousePress(const QByteArray &message)
QPoint p(tokens.at(1).toInt(), tokens.at(2).toInt()); // ### assumes well-formed string
QWidget *target = findEventTarget(rootWidget, p);
- qDebug() << "target" << target << target->metaObject()->className();
QPoint local = target->mapFrom(rootWidget, p);
if (message.startsWith("/mousepress")) {
- qDebug() << "press" << local;
QMouseEvent press(QEvent::MouseButtonPress, local , Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
QApplication::sendEvent(target, &press);
} else if (message.startsWith("/mouserelease")) {
@@ -351,6 +349,8 @@ void WidgetEventHandler::widgetPaint(QWidget *widget, const QRect &updateRect)
return ;
}
+ qDebug() << "paint" << widget << widget->rect() << "update" << updateRect;
+
QImage image(widget->size(), QImage::Format_ARGB32_Premultiplied);
DEBUG << "widget->size" << widget->size();
image.fill(QColor(0,0,0,0).rgba()); // fill with transparent pixels