Commit 50944e65 authored by Maxime Perrotin's avatar Maxime Perrotin

Improve rendering of the Condition symbol

parent 091ca049
......@@ -26,7 +26,7 @@
#
#******************************************************************************
from PySide.QtGui import QPainterPath, QPen
from PySide.QtCore import Qt, Slot
from PySide.QtCore import Qt, Slot, QPointF
from msccore import MscCondition
from mscgraphics import MscGraphItem
......@@ -38,8 +38,8 @@ class MscGraphCondition(MscGraphItem):
Class that draws a Condition symbol
'''
DefaultWidth = 100
DefaultHeight = 100
DefaultWidth = 150
DefaultHeight = 30
def __init__(self, data=None, y=0, label=None, parent=None):
u"""
......@@ -99,8 +99,9 @@ class MscGraphCondition(MscGraphItem):
self.label.setTextLabel(self.mscData().getName())
def updateLabelPosition(self):
self.label.setPos(self.width + 10,
-self.label.boundingRect().height() / 2)
self.label.setCenterPos(QPointF(0, 15))
#self.label.setPos(self.x() + 10,
# -self.label.boundingRect().height() / 2)
#**************************************************************************
# Item Change
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment