[Uml-devel] branches/work/soc-umbrello/umbrello
Andi Fischer
andi.fischer at hispeed.ch
Sat Nov 10 07:46:37 UTC 2012
SVN commit 1324704 by fischer:
UMLSceneRectItem removed and using QGraphicsRectItem directly.
M +0 -1 umlscene.h
M +3 -3 widgets/widget_utils.cpp
M +1 -1 widgets/widget_utils.h
--- branches/work/soc-umbrello/umbrello/umlscene.h #1324703:1324704
@@ -72,7 +72,6 @@
typedef QGraphicsSceneDragDropEvent UMLSceneDragEnterEvent;
typedef QGraphicsSceneDragDropEvent UMLSceneDragMoveEvent;
-typedef QGraphicsRectItem UMLSceneRectItem;
typedef QGraphicsEllipseItem UMLSceneEllipse;
/**
--- branches/work/soc-umbrello/umbrello/widgets/widget_utils.cpp #1324703:1324704
@@ -66,13 +66,13 @@
* @param p the base point
* @return the decoration point
*/
- UMLSceneRectItem* decoratePoint(const UMLScenePoint& p)
+ QGraphicsRectItem* decoratePoint(const UMLScenePoint& p)
{
const int SIZE = 4;
UMLView *currentView = UMLApp::app()->currentView();
- UMLSceneRectItem *rect = new UMLSceneRectItem(p.x() - SIZE / 2,
+ QGraphicsRectItem *rect = new QGraphicsRectItem(p.x() - SIZE / 2,
p.y() - SIZE / 2,
- SIZE, SIZE);
+ SIZE, SIZE, 0);
currentView->umlScene()->addItem(rect);
rect->setBrush( QBrush(Qt::blue) );
rect->setPen( QPen(Qt::blue) );
--- branches/work/soc-umbrello/umbrello/widgets/widget_utils.h #1324703:1324704
@@ -32,7 +32,7 @@
const UMLWidgetList& widgets,
const MessageWidgetList* messages = 0);
- UMLSceneRectItem* decoratePoint(const UMLScenePoint& p);
+ QGraphicsRectItem* decoratePoint(const UMLScenePoint& p);
void drawCrossInEllipse(QPainter *p, const QRectF& ellipse);
void drawTriangledRect(QPainter *painter, const UMLSceneRect& rect, const UMLSceneSize& triSize);
More information about the umbrello-devel
mailing list