[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Compile problems with gcc-3.4
From: Florian Schanda <ma1flfs () bath ! ac ! uk>
Date: 2004-02-02 10:37:38
Message-ID: 200402021037.39002.ma1flfs () bath ! ac ! uk
[Download RAW message or body]
On Monday February 2 2004 07:48, Rob Buis wrote:
> I dont think so, you really need to work with the result of
> QWidget::rect(). I dont know the exact changes with the new gcc, but maybe
> its possible to use KoRect::fromQRect() ?
No, but it is possible to use QWidget::rect() directly.
Florian
["koffice.vcanvas.gcc34.patch" (text/x-diff)]
Index: vcanvas.cc
===================================================================
RCS file: /home/kde/koffice/karbon/widgets/vcanvas.cc,v
retrieving revision 1.18
diff -u -3 -p -r1.18 vcanvas.cc
--- vcanvas.cc 22 Dec 2003 18:31:39 -0000 1.18
+++ vcanvas.cc 2 Feb 2004 10:31:31 -0000
@@ -345,7 +345,7 @@ VCanvas::repaintAll( const KoRect & )
//if( m_view->layersDocker() )
// m_view->layersDocker()->updatePreviews();
VPainter *p = m_view->painterFactory()->painter();
- KoRect rect( rect().x(), rect().y(), rect().width(), rect().height() );
+ KoRect rect( QWidget::rect().x(), QWidget::rect().y(), \
QWidget::rect().width(), QWidget::rect().height() ); p->blit( rect );
// draw handle:
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic