summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-07-04 21:06:02 (UTC)
committer zautrix <zautrix>2005-07-04 21:06:02 (UTC)
commit2767ffda27fa0e88816832d4b2c6efdd0c52a8eb (patch) (unidiff)
tree8194ee4b7019698d08d47892e428e254f45d5500
parent16898aecbedb978169efef1e1e0233578a42a46e (diff)
downloadkdepimpi-2767ffda27fa0e88816832d4b2c6efdd0c52a8eb.zip
kdepimpi-2767ffda27fa0e88816832d4b2c6efdd0c52a8eb.tar.gz
kdepimpi-2767ffda27fa0e88816832d4b2c6efdd0c52a8eb.tar.bz2
highlight pix smaller
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagenda.cpp26
1 files changed, 22 insertions, 4 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp
index 94c3b22..63fdecd 100644
--- a/korganizer/koagenda.cpp
+++ b/korganizer/koagenda.cpp
@@ -1282,3 +1282,12 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
1282 contentsToViewport ( selectionX, mSelectionYTop, vx,vy); 1282 contentsToViewport ( selectionX, mSelectionYTop, vx,vy);
1283 bitBlt ( pd, vx+1, vy, &mHighlightPixmap, 0, mSelectionYTop, mGridSpacingX-1, mSelectionHeight ,CopyROP); 1283 // bitBlt ( pd, vx+1, vy, &mHighlightPixmap, 0, mSelectionYTop, mGridSpacingX-1, mSelectionHeight ,CopyROP);
1284 int hei = mSelectionHeight;
1285 int offset = 0;
1286 while ( hei > 0 ) {
1287 int p_hei = 5;
1288 if ( hei < 5 ) p_hei = hei;
1289 hei -= 5;
1290 bitBlt ( pd, vx+1, vy+offset, &mHighlightPixmap, 0, 0, mGridSpacingX-1, p_hei ,CopyROP);
1291 offset += 5;
1292 }
1284 } 1293 }
@@ -1307,3 +1316,12 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
1307 contentsToViewport ( selectionX, mSelectionYTop, vx,vy); 1316 contentsToViewport ( selectionX, mSelectionYTop, vx,vy);
1308 bitBlt ( pd, vx+1, vy, &mHighlightPixmap, 0, mSelectionYTop, mGridSpacingX-1, mSelectionHeight ,CopyROP); 1317 //bitBlt ( pd, vx+1, vy, &mHighlightPixmap, 0, mSelectionYTop, mGridSpacingX-1, mSelectionHeight ,CopyROP);
1318 int hei = mSelectionHeight;
1319 int offset = 0;
1320 while ( hei > 0 ) {
1321 int p_hei = 5;
1322 if ( hei < 5 ) p_hei = hei;
1323 hei -= 5;
1324 bitBlt ( pd, vx+1, vy+offset, &mHighlightPixmap, 0, 0, mGridSpacingX-1, p_hei ,CopyROP);
1325 offset += 5;
1326 }
1309 } 1327 }
@@ -1380,4 +1398,4 @@ void KOAgenda::drawContentsToPainter( QPainter* paint, bool backgroundOnly )// i
1380 mCurPixHei = ch; 1398 mCurPixHei = ch;
1381 if ( mHighlightPixmap.width() < mGridSpacingX-1 || mHighlightPixmap.height() < ch ) { 1399 if ( mHighlightPixmap.width() < mGridSpacingX-1 ) {
1382 mHighlightPixmap.resize( mGridSpacingX-1, ch ); 1400 mHighlightPixmap.resize( mGridSpacingX-1, 5 );
1383 mHighlightPixmap.fill ( KOPrefs::instance()->mHighlightColor ); 1401 mHighlightPixmap.fill ( KOPrefs::instance()->mHighlightColor );