[Kalzium] [Bug 112413] Biological symbol cannot always be seen
Pino Toscano
toscano.pino at tiscali.it
Sun Sep 11 17:58:01 CEST 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=112413
------- Additional Comments From toscano.pino tiscali it 2005-09-11 17:58 -------
SVN commit 459613 by pino:
Draw a white background for the biological symbol, if present.
CCBUG: 112413
M +11 -2 detailedgraphicaloverview.cpp
--- branches/KDE/3.5/kdeedu/kalzium/src/detailedgraphicaloverview.cpp #459612:459613
@ -155,9 +155,18 @
int d_ds = ( db/2 )-( ds/2 ); //the delta-x/y of the inner circle
- int pos_x = width() - 8 - db;
- int pos_y = 8;
+ int pos_x = width() - 4 - db;
+ int pos_y = 4;
+ if ( m_element->biological() > 0 )
+ {
+ const int radius = db + 8;
+ p->setBrush( Qt::SolidPattern );
+ p->setBrush( Qt::white );
+ p->setPen( Qt::white );
+ p->drawRoundRect( QRect( width() - radius, -radius, 2 * radius, 2 * radius ), 40, 40 );
+ }
+
switch ( m_element->biological() )
{
case 0: //nothing
More information about the Kalzium
mailing list