Hello Anon,
May I ask what may seem a very stupid question ? Why are you using 1.44 that
will probably be dropped in the release after 7.2. qt2 has been out for some
time and already 2.2 is comming out.
I am not sure that qt 1.44 is being patched anymore since the bugs have been
fixed in qt 2.x
-Chris
On Tue, 29 Aug 2000, Anon Sricharoenchai wrote:
> > Package: qt
> Version: 1.44-26mdk
>
> When I use the method,
> QPainter::drawImage(int x, int y, const QImage &, int sx=0, int sy=0, int
> sw, int sh); , the region of the QImage is incorrectly copied onto the
> paint device.
>
>
> I have attached a patch file to fix this bug. This patch is used to apply
> in qt-1.45, but it can also be used to patch the 1.44 version.
>
>
> diff -ur qt-1.45/src/kernel/qpainter.cpp
> qt-1.45.fixed/src/kernel/qpainter.cpp --- qt-1.45/src/kernel/qpainter.cpp
> Fri Nov 12 23:57:27 1999 +++ qt-1.45.fixed/src/kernel/qpainter.cpp
> Fri Aug 25 01:42:07 2000 @@ -1670,7 +1670,7 @@
> if ( image.rect().intersect(QRect(sx,sy,sw,sh)) == image.rect() )
> subimage = image;
> else
> - subimage = image.copy(sx,sy,sw,wh);
> + subimage = image.copy(sx,sy,sw,sh);
>
> QPixmap pm;
> pm.convertFromImage( subimage );
>
>
> I have suggested this to Trolltech, but they told that they have already
> freezed the qt-1.xx maintenance. But I still need qt-1.xx, because when I
> develop my KDE application, qt2 doesn't work with the kdelibs-1.1.2
> that come with mandrake 7.1 distribution.
>
> Can you suggest me how to link qt2 with kdelibs-1.1.2 ? Or I have to use
> KDE 2.0 ?
>
>
> Regards,
> Anon Sricharoenchai.
----------------------------------------
Content-Type: TEXT/PLAIN; name="qt-1.45.patch"
Content-Transfer-Encoding: BASE64
Content-Description:
----------------------------------------