24 #include <QGraphicsSceneMouseEvent>
34 using namespace YACS::ENGINE;
35 using namespace YACS::HMI;
67 const QStyleOptionGraphicsItem *option,
79 QRect boundRect(0, 0, w, h);
80 painter->drawRect(boundRect);
85 painter->drawRect(QRect(0, 0, corr_w, h));
91 QString percentageLabel;
92 QString nbStepsLabel =
"-/-";
93 QStringList aSteps = newProgress.split(
'/');
94 if (aSteps.count() == 2)
96 _progress = aSteps.at(0).toInt() * 100 / aSteps.at(1).toInt();
97 nbStepsLabel = newProgress;
103 percentageLabel = QString(
"%1\%").arg(
_progress);
108 resultLabel = QString(
"%1").arg(percentageLabel);
111 resultLabel = QString(
"%1").arg(nbStepsLabel);
114 resultLabel = QString(
"%1 (%2)").arg(percentageLabel).arg(nbStepsLabel);
118 _tooltip = QString(
"%1 (%2)").arg(percentageLabel).arg(nbStepsLabel);
138 prepareGeometryChange();
151 if (dynamic_cast<SceneHeaderNodeItem*>(
this))