]> Git trees. - libqmvoc.git/commitdiff
Wow, very nice patch from Eloy Cuadra. The table looks now much better
authorCarsten Niehaus <cniehaus@gmx.de>
Thu, 14 Jul 2005 21:28:34 +0000 (21:28 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Thu, 14 Jul 2005 21:28:34 +0000 (21:28 +0000)
CCMAIL: ecuadra@eloihr.net
CCMAIL: kalzium@kde.org

svn path=/trunk/KDE/kdeedu/kalzium/src/element.cpp; revision=434631

kalzium/src/element.cpp

index 50ae3ffb955322226b0b18c702d05a84ef7d03fb..f3bea1cc6c4df2222e7a1566fb52b0ff80848266 100644 (file)
@@ -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