~ubuntu-branches/ubuntu/intrepid/kdesdk/intrepid-updates

« back to all changes in this revision

Viewing changes to umbrello/umbrello/usecasewidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-28 10:11:43 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20080528101143-gzc3styjz1b70zxu
Tags: upstream-4.0.80
ImportĀ upstreamĀ versionĀ 4.0.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *   the Free Software Foundation; either version 2 of the License, or     *
6
6
 *   (at your option) any later version.                                   *
7
7
 *                                                                         *
8
 
 *   copyright (C) 2002-2006                                               *
 
8
 *   copyright (C) 2002-2008                                               *
9
9
 *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
10
10
 ***************************************************************************/
11
11
 
28
28
UseCaseWidget::~UseCaseWidget() {}
29
29
 
30
30
void UseCaseWidget::draw(QPainter & p, int offsetX, int offsetY) {
31
 
    UMLWidget::setPen(p);
 
31
    setPenFromSettings(p);
32
32
    if ( UMLWidget::getUseFillColour() )
33
33
        p.setBrush( UMLWidget::getFillColour() );
34
34
    QFont font = UMLWidget::getFont();
46
46
    p.drawEllipse(offsetX, offsetY, w, h);
47
47
    p.setPen(Qt::black);
48
48
    p.drawText(offsetX + UC_MARGIN, offsetY + textStartY, w - UC_MARGIN * 2, fontHeight, Qt::AlignCenter, getName());
49
 
    UMLWidget::setPen(p);
 
49
    setPenFromSettings(p);
50
50
    if(m_bSelected)
51
51
        drawSelected(&p, offsetX, offsetY);
52
52
}