From kde-commits Fri Mar 03 09:20:41 2006 From: Dag Andersen Date: Fri, 03 Mar 2006 09:20:41 +0000 To: kde-commits Subject: koffice/kplato Message-Id: <1141377641.803171.27981.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=114137764922416 SVN commit 515257 by danders: Clip printout of gantt chart. M +12 -7 kptganttview.cc --- trunk/koffice/kplato/kptganttview.cc #515256:515257 @@ -1016,6 +1016,9 @@ //But KSpread uses fixed 300 dpis, so we can use it. QPaintDeviceMetrics metrics( &prt ); + uint top, left, bottom, right; + prt.margins(&top, &left, &bottom, &right); + //kdDebug()<getPart()->getProject().name()); -// p.drawText( r, Qt::AlignLeft, text ); -// hei = r.height(); -// //kdDebug()<<"Project r="<getPart()->getProject().name(); + p.drawText( r, Qt::AlignLeft, text ); + hei = r.height(); + //kdDebug()<<"Project r="<formatDateTime(QDateTime::currentDateTime()); r = p.boundingRect(metrics.width()-1,0,0,0, Qt::AlignRight, text ); p.drawText( r, Qt::AlignRight, text );