From 9274cabcc0fece632bb2351980b4db0807e2fd66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 6 Dec 2012 00:42:37 +0000 Subject: [PATCH] [GB.QT4] * BUG: gb.qt4 now should compile again with Qt version < 4.8. git-svn-id: svn://localhost/gambas/trunk@5414 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.qt4/src/webkit/cwebelement.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gb.qt4/src/webkit/cwebelement.cpp b/gb.qt4/src/webkit/cwebelement.cpp index 2364eb2ab..b56bd79a0 100644 --- a/gb.qt4/src/webkit/cwebelement.cpp +++ b/gb.qt4/src/webkit/cwebelement.cpp @@ -289,6 +289,8 @@ BEGIN_METHOD(WebElement_Paint, GB_OBJECT clip) if (!painter) return; + #if QT_VERSION >= 0x040800 + if (MISSING(clip)) ELT->render(painter); else @@ -297,6 +299,12 @@ BEGIN_METHOD(WebElement_Paint, GB_OBJECT clip) QRect clip(rect->x, rect->y, rect->w, rect->h); ELT->render(painter, clip); } + + #else + + ELT->render(painter); + + #endif END_METHOD