~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to umbrello/umbrello/widgets/componentwidget.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-06 11:49:54 UTC
  • mfrom: (0.4.21)
  • Revision ID: package-import@ubuntu.com-20120606114954-rdls73fzlpzxglbx
Tags: 4:4.8.80-0ubuntu1
* New uptream beta release
* Update dont_export_private_classes.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    if ( UMLWidget::useFillColor() ) {
60
60
        p.setBrush( UMLWidget::fillColor() );
61
61
    } else {
62
 
        p.setBrush( m_scene->viewport()->palette().color(QPalette::Background) );
 
62
        p.setBrush( m_scene->view()->viewport()->palette().color(QPalette::Background) );
63
63
    }
64
64
 
65
65
    const int w = width();
75
75
    p.drawRect(offsetX, offsetY + h/2 - fontHeight/2 - fontHeight, COMPONENT_MARGIN*4, fontHeight);
76
76
    p.drawRect(offsetX, offsetY + h/2 + fontHeight/2, COMPONENT_MARGIN*4, fontHeight);
77
77
 
78
 
    p.setPen( QPen(Qt::black) );
 
78
    p.setPen(textColor());
79
79
    p.setFont(font);
80
80
 
81
81
    int lines = 1;