From 8760fbdfefe1b6c60400cdeee45a6ba892d40751 Mon Sep 17 00:00:00 2001 From: hash Date: Tue, 27 Aug 2002 07:41:59 +0000 Subject: pixmaps centered better --- diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp index c3ee8f3..92ea896 100644 --- a/inputmethods/multikey/keyboard.cpp +++ b/inputmethods/multikey/keyboard.cpp @@ -194,7 +194,7 @@ void Keyboard::drawKeyboard(QPainter &p, int row, int col) } else // center the image in the middle of the key - p.drawImage( x + (defaultKeyWidth * keyWidth - pix->width())/2, + p.drawImage( x + (defaultKeyWidth * keyWidth - pix->width())/2 + 1, y + (keyHeight - pix->height())/2 + 1, *pix ); @@ -244,7 +244,7 @@ void Keyboard::drawKeyboard(QPainter &p, int row, int col) else { // center the image in the middle of the key pix->setColor(1, textcolor.rgb()); - p.drawImage( x + (keyWidthPix - pix->width())/2, + p.drawImage( x + (keyWidthPix - pix->width())/2 + 1, y + (keyHeight - pix->height())/2 + 1, QImage(*pix) ); } -- cgit v0.9.0.2