From: Carsten Niehaus Date: Thu, 14 Jul 2005 21:28:34 +0000 (+0000) Subject: Wow, very nice patch from Eloy Cuadra. The table looks now much better X-Git-Tag: v3.80.2~300^2~71 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=53d1e48a1702977b8e23528cb1a0541a586d78e6;p=libqmvoc.git Wow, very nice patch from Eloy Cuadra. The table looks now much better CCMAIL: ecuadra@eloihr.net CCMAIL: kalzium@kde.org svn path=/trunk/KDE/kdeedu/kalzium/src/element.cpp; revision=434631 --- diff --git a/kalzium/src/element.cpp b/kalzium/src/element.cpp index 50ae3ff..f3bea1c 100644 --- a/kalzium/src/element.cpp +++ b/kalzium/src/element.cpp @@ -483,7 +483,14 @@ int Element::xPos() const int Element::yPos() const { - return ( y-1 )*ELEMENTSIZE + ELEMENTSIZE; +// original +// return ( y-1 )*ELEMENTSIZE + ELEMENTSIZE; + int tmp_y = ( y-1 )*ELEMENTSIZE + ELEMENTSIZE; + + if ( (m_number > 57 && m_number < 72) || (m_number > 89 && m_number < 104) ) + tmp_y += ELEMENTSIZE/3; + + return tmp_y; } QPoint Element::pos() const