-rw-r--r-- | inputmethods/multikey/keyboard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ -193,9 +193,9 @@ void Keyboard::drawKeyboard(QPainter &p, int row, int col) AlignCenter, (QChar)c); } 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 ); // this fixes the problem that the very right end of the board's vertical line @@ -243,9 +243,9 @@ 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) ); } |