Skip to content

Commit

Permalink
Simulation Experiment view: reordered the properties of a graph line (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Sep 15, 2017
1 parent fdd7d1c commit 34238e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -100,12 +100,12 @@
<translation>TiretPointPoint</translation>
</message>
<message>
<source>Colour</source>
<translation>Couleur</translation>
<source>Width</source>
<translation>Largeur</translation>
</message>
<message>
<source>Thickness</source>
<translation>Épaisseur</translation>
<source>Colour</source>
<translation>Couleur</translation>
</message>
<message>
<source>Symbol</source>
Expand Down
Expand Up @@ -286,8 +286,8 @@ void SimulationExperimentViewInformationGraphsWidget::addGraph(OpenCOR::GraphPan
Core::Property *lineProperty = propertyEditor->addSectionProperty(graphProperty);

propertyEditor->addListProperty(lineProperty);
propertyEditor->addStringProperty(Core::UnknownValue, lineProperty);
propertyEditor->addDoubleProperty(1.0, lineProperty);
propertyEditor->addStringProperty(Core::UnknownValue, lineProperty);

// Create some symbol properties for our graph

Expand Down Expand Up @@ -852,7 +852,7 @@ void SimulationExperimentViewInformationGraphsWidget::updateGraphInfo(Core::Prop
Core::Property *styleProperty = pProperty->properties()[3]->properties()[0];

graphPen.setStyle(Qt::PenStyle(styleProperty->listValues().indexOf(styleProperty->listValue())));
graphPen.setWidthF(pProperty->properties()[3]->properties()[2]->doubleValue());
graphPen.setWidthF(pProperty->properties()[3]->properties()[1]->doubleValue());

graph->setPen(graphPen);

Expand Down Expand Up @@ -964,8 +964,8 @@ void SimulationExperimentViewInformationGraphsWidget::updateGraphsInfo(Core::Pro
<< tr("DashDotDot"),
tr("Solid"),
false);
graphProperty->properties()[3]->properties()[1]->setName(tr("Colour"));
graphProperty->properties()[3]->properties()[2]->setName(tr("Thickness"));
graphProperty->properties()[3]->properties()[1]->setName(tr("Width"));
graphProperty->properties()[3]->properties()[2]->setName(tr("Colour"));

// Set the label of our graph symbol properties

Expand Down

0 comments on commit 34238e7

Please sign in to comment.