author | zautrix <zautrix> | 2007-06-05 13:21:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2007-06-05 13:21:33 (UTC) |
commit | d5c53970b9e12bfe774d1fecd603080aded24e09 (patch) (unidiff) | |
tree | fca3c555b3e37302ebe1ee1840fa3e27502dcc50 /korganizer | |
parent | a388f4f019ccf2b7c138a6814b44b9e8f2a5f570 (diff) | |
download | kdepimpi-d5c53970b9e12bfe774d1fecd603080aded24e09.zip kdepimpi-d5c53970b9e12bfe774d1fecd603080aded24e09.tar.gz kdepimpi-d5c53970b9e12bfe774d1fecd603080aded24e09.tar.bz2 |
print fix
-rw-r--r-- | korganizer/kolistview.cpp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index b378330..192f8c0 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -1408,2 +1408,3 @@ void KOListViewListView::printList() | |||
1408 | p.begin ( &printer ); | 1408 | p.begin ( &printer ); |
1409 | p.setFont(font()); | ||
1409 | QPaintDeviceMetrics m = QPaintDeviceMetrics ( &printer ); | 1410 | QPaintDeviceMetrics m = QPaintDeviceMetrics ( &printer ); |
@@ -1434,3 +1435,22 @@ void KOListViewListView::printList() | |||
1434 | p.translate( 0, header()->height()); | 1435 | p.translate( 0, header()->height()); |
1435 | drawContentsOffset ( &p, 0,0, 0,0, contentsWidth (), contentsHeight () ); | 1436 | //drawContentsOffset ( &p, 0,0, 0,0, contentsWidth (), contentsHeight () ); |
1437 | |||
1438 | const QColorGroup &cg = colorGroup(); | ||
1439 | KOListViewItem* item = (KOListViewItem* )firstChild(); | ||
1440 | int yOff = 0; | ||
1441 | while ( item ) { | ||
1442 | p.translate( 0, yOff ); | ||
1443 | p.save(); | ||
1444 | for ( iii = 0; iii < cou; ++iii ) { | ||
1445 | int align = columnAlignment( iii ); | ||
1446 | if ( align == AlignAuto ) align = AlignLeft; | ||
1447 | p.restore(); | ||
1448 | p.save(); | ||
1449 | p.translate( header()->sectionPos( iii ), 0); | ||
1450 | item->paintCell( &p, cg, iii, header()->sectionSize (iii), align ); | ||
1451 | } | ||
1452 | yOff = item->height(); | ||
1453 | item = (KOListViewItem* )(item->itemBelow()); | ||
1454 | p.restore(); | ||
1455 | } | ||
1436 | p.end(); | 1456 | p.end(); |