summaryrefslogtreecommitdiffstats
path: root/src/plugins/graphicssystems
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-01-28 16:36:51 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-01-28 16:40:07 (GMT)
commitceb4feb8f5c65aa15213bc01dbf1268f3bc7119e (patch)
treed1d5d71ab45d593b3e3d2e2f3f3892410c222ebd /src/plugins/graphicssystems
parent112a81b92ed7a45c9d1ae461eb6aa61e0ca45e8f (diff)
downloadQt-ceb4feb8f5c65aa15213bc01dbf1268f3bc7119e.zip
Qt-ceb4feb8f5c65aa15213bc01dbf1268f3bc7119e.tar.gz
Qt-ceb4feb8f5c65aa15213bc01dbf1268f3bc7119e.tar.bz2
Make tlw update when resizing
Diffstat (limited to 'src/plugins/graphicssystems')
-rw-r--r--src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp14
-rw-r--r--src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h1
2 files changed, 1 insertions, 14 deletions
diff --git a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp
index cbb720e..65407fd 100644
--- a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp
+++ b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp
@@ -90,24 +90,13 @@ void QTestLiteWindowSurface::flush(QWidget *widget, const QRegion &region, const
}
-void QTestLiteWindowSurface::geometryChanged(const QRect &rect)
-{
- bool resize = rect.size() != geometry().size();
- QWindowSurface::setGeometry(rect);
-
- if (resize) {
- window()->update(); //### this is the wrong place for this...
- }
-}
-
-
void QTestLiteWindowSurface::setGeometry(const QRect &rect)
{
QRect oldRect = geometry();
if (rect == oldRect)
return;
- QTestLiteWindowSurface::geometryChanged(rect);
+ QWindowSurface::setGeometry(rect);
//if unchanged ###
// xw->setSize(rect.width(), rect.height());
@@ -276,7 +265,6 @@ void QTestLiteWindowSurface::handleMouseEvent(QEvent::Type type, void *ev)
void QTestLiteWindowSurface::handleGeometryChange(int x, int y, int w, int h)
{
- geometryChanged(QRect(x,y,w,h));
QApplicationPrivate::handleGeometryChange(window(), QRect(x,y,w,h));
}
diff --git a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h
index 9f9f052..0c4df1a 100644
--- a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h
+++ b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h
@@ -62,7 +62,6 @@ public:
QPaintDevice *paintDevice();
void flush(QWidget *widget, const QRegion &region, const QPoint &offset);
void setGeometry(const QRect &rect);
- void geometryChanged(const QRect &rect);
bool scroll(const QRegion &area, int dx, int dy);
void beginPaint(const QRegion &region);