From 9667e6f2589d5b2080cca928814f382761f8dda6 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 08 Apr 2005 22:05:03 +0000 Subject: utf8 kapi import fix --- (limited to 'kaddressbook/views') diff --git a/kaddressbook/views/cardview.cpp b/kaddressbook/views/cardview.cpp index 84d3116..b6e053f 100644 --- a/kaddressbook/views/cardview.cpp +++ b/kaddressbook/views/cardview.cpp @@ -936,8 +936,7 @@ uint CardView::columnWidth() void CardView::drawContents(QPainter *p, int clipx, int clipy, int clipw, int cliph) { - QScrollView::drawContents(p, clipx, clipy, clipw, cliph); - + //QScrollView::drawContents(p, clipx, clipy, clipw, cliph); if (d->mLayoutDirty) calcLayout(); @@ -945,15 +944,15 @@ void CardView::drawContents(QPainter *p, int clipx, int clipy, // << ", " << clipw << ", " << cliph << endl; QColorGroup cg = viewport()->palette().active(); // allow setting costum colors in the viewport pale - + int cX, cY; + contentsToViewport ( clipx, clipy, cX, cY ); QRect clipRect(clipx, clipy, clipw, cliph); QRect cardRect; QRect sepRect; CardViewItem *item; CardViewSeparator *sep; - // make sure the viewport is a pure background - viewport()->erase(clipRect); + viewport()->erase( QRect ( cX, cY , clipw, cliph ) ); // Now tell the cards to draw, if they are in the clip region QPtrListIterator iter(d->mItemList); -- cgit v0.9.0.2