[Kalzium] [Bug 112413] Biological symbol cannot always be seen
Pino Toscano
toscano.pino at tiscali.it
Sun Sep 11 17:59:58 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
toscano.pino tiscali it changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From toscano.pino tiscali it 2005-09-11 17:59 -------
SVN commit 459614 by pino:
Forwardport: draw a white background for the biological symbol, if present.
BUG: 112413
M +11 -2 detailedgraphicaloverview.cpp
--- trunk/KDE/kdeedu/kalzium/src/detailedgraphicaloverview.cpp #459613:459614
@ -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