From 2ff3290b552c575ff7222df29235651968f484aa Mon Sep 17 00:00:00 2001 From: hash Date: Thu, 22 Aug 2002 08:09:57 +0000 Subject: coloring problem --- (limited to 'inputmethods/multikey/keyboard.cpp') diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp index 89937cf..e3d3928 100644 --- a/inputmethods/multikey/keyboard.cpp +++ b/inputmethods/multikey/keyboard.cpp @@ -231,6 +231,7 @@ void Keyboard::drawKeyboard(QPainter &p, int row, int col) ushort c = keys->uni(row, col); + p.setPen(textcolor); if (!pix) { if ((shift || lock) && keys->shift(c)) c = keys->shift(c); @@ -238,7 +239,7 @@ void Keyboard::drawKeyboard(QPainter &p, int row, int col) c = keys->meta(c); p.drawText(x, y, - defaultKeyWidth * keyWidth + 3, keyHeight, + keyWidthPix + 3, keyHeight, AlignCenter, (QChar)c); } else { @@ -256,6 +257,7 @@ void Keyboard::drawKeyboard(QPainter &p, int row, int col) } + p.setPen(keycolor_lines); p.drawLine(0, height() - 1, width(), height() - 1); p.drawLine(width() - 1, 0, width() - 1, height()); } -- cgit v0.9.0.2