Skip to content

Commit

Permalink
Removing const for methods
Browse files Browse the repository at this point in the history
  • Loading branch information
har13205 committed Mar 20, 2024
1 parent de112d6 commit 1b8b70d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,32 +646,32 @@ void ValidateUtilityNetworkTopology::setupTraceParameters()
emit isBusy();
}

LabelDefinition* ValidateUtilityNetworkTopology::createDeviceLabelDefinition() const
LabelDefinition* ValidateUtilityNetworkTopology::createDeviceLabelDefinition()
{
SimpleLabelExpression* labelExpression = new SimpleLabelExpression("[devicestatus]", new QObject());
SimpleLabelExpression* labelExpression = new SimpleLabelExpression("[devicestatus]", this);

TextSymbol* textSymbol = new TextSymbol(new QObject());
TextSymbol* textSymbol = new TextSymbol(this);
textSymbol->setSize(12);
textSymbol->setColor(Qt::blue);
textSymbol->setHaloColor(Qt::white);
textSymbol->setHaloWidth(2);

LabelDefinition* deviceLabelDefinition = new LabelDefinition(labelExpression, textSymbol, new QObject());
LabelDefinition* deviceLabelDefinition = new LabelDefinition(labelExpression, textSymbol, this);
deviceLabelDefinition->setUseCodedValues(true);
return deviceLabelDefinition;
}

LabelDefinition* ValidateUtilityNetworkTopology::createLineLabelDefinition() const
LabelDefinition* ValidateUtilityNetworkTopology::createLineLabelDefinition()
{
SimpleLabelExpression* labelExpression = new SimpleLabelExpression("[nominalvoltage]", new QObject());
SimpleLabelExpression* labelExpression = new SimpleLabelExpression("[nominalvoltage]", this);

TextSymbol* textSymbol = new TextSymbol(new QObject());
TextSymbol* textSymbol = new TextSymbol(this);
textSymbol->setSize(12);
textSymbol->setColor(Qt::red);
textSymbol->setHaloColor(Qt::white);
textSymbol->setHaloWidth(2);

LabelDefinition* lineLabelDefinition = new LabelDefinition(labelExpression, textSymbol, new QObject());
LabelDefinition* lineLabelDefinition = new LabelDefinition(labelExpression, textSymbol, this);
lineLabelDefinition->setUseCodedValues(true);
return lineLabelDefinition;
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class ValidateUtilityNetworkTopology : public QObject
private:
Esri::ArcGISRuntime::MapQuickView* mapView() const;
void setMapView(Esri::ArcGISRuntime::MapQuickView* mapView);
Esri::ArcGISRuntime::LabelDefinition* createDeviceLabelDefinition() const;
Esri::ArcGISRuntime::LabelDefinition* createLineLabelDefinition() const;
Esri::ArcGISRuntime::LabelDefinition* createDeviceLabelDefinition();
Esri::ArcGISRuntime::LabelDefinition* createLineLabelDefinition();
void displayLabelDefinitions();
void setupTraceParameters();
void connectSignals();
Expand Down

0 comments on commit 1b8b70d

Please sign in to comment.