[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdeedu/kalzium/src
From: Carsten Niehaus <cniehaus () gmx ! de>
Date: 2005-08-01 21:44:57
Message-ID: 1122932697.635373.28660.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 442196 by cniehaus:
improve it after the input of Jörg
M +3 -3 element.cpp
--- branches/KDE/3.5/kdeedu/kalzium/src/element.cpp #442195:442196
@@ -368,16 +368,16 @@
bool goodSizeFound = false;
const int max = ELEMENTSIZE-10;
- const QRect rect = QRect( X,Y,max,max );
+ const QRect rect = QRect( X,Y,ELEMENTSIZE-2,max );
int goodsize = KalziumUtils::maxSize( symbol(), rect, symbol_font, p );
symbol_font.setPointSize( goodsize );
p->setFont( symbol_font );
if ( !simple )
- p->drawText( X+5,Y+5, max,max,Qt::AlignCenter, symbol() );
+ p->drawText( X+1,Y+5, ELEMENTSIZE-2,max,Qt::AlignCenter, symbol() );
else
- p->drawText( X+5,Y+5, max,max,Qt::AlignHCenter, symbol() );
+ p->drawText( X+1,Y+5, ELEMENTSIZE-2,max,Qt::AlignHCenter, symbol() );
QFont f = p->font();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic