From 53d1e48a1702977b8e23528cb1a0541a586d78e6 Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Thu, 14 Jul 2005 21:28:34 +0000 Subject: [PATCH] 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 --- kalzium/src/element.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.47.3