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

« back to all changes in this revision

Viewing changes to umbrello/umbrello/datatypewidget.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) 2003-2007                                               *
 
8
 *   copyright (C) 2003-2008                                               *
9
9
 *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
10
10
 ***************************************************************************/
11
11
 
22
22
#include "classifierlistitem.h"
23
23
#include "umlview.h"
24
24
#include "umldoc.h"
25
 
#include "listpopupmenu.h"
26
25
 
27
26
 
28
27
#define CIRCLE_SIZE 30
40
39
}
41
40
 
42
41
void DatatypeWidget::draw(QPainter& p, int offsetX, int offsetY) {
43
 
    UMLWidget::setPen(p);
 
42
    setPenFromSettings(p);
44
43
    if (UMLWidget::getUseFillColour())  {
45
44
        p.setBrush(UMLWidget::getFillColour());
46
45
    } else {
47
 
        p.setBrush(m_pView->viewport()->backgroundColor());
 
46
        p.setBrush( m_pView->viewport()->palette().color(QPalette::Background) );
48
47
    }
49
48
 
50
49
    int w = width();