Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jan 13, 2020
1 parent 92d7c0a commit b68a863
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -2226,13 +2226,13 @@ bool GraphPanelPlotWidget::isLegendVisible() const

//==============================================================================

void GraphPanelPlotWidget::setLegendVisible(bool pLegendActive)
void GraphPanelPlotWidget::setLegendVisible(bool pLegendVisible)
{
// Show/hide our legend

if (pLegendActive != isLegendVisible()) {
mLegend->setActive(pLegendActive);
mLegendAction->setChecked(pLegendActive);
if (pLegendVisible != isLegendVisible()) {
mLegend->setActive(pLegendVisible);
mLegendAction->setChecked(pLegendVisible);

// To show/hide our legend may have some effects on the alignment with
// our neighbours, so update ourselves
Expand Down
Expand Up @@ -447,7 +447,7 @@ class GRAPHPANELWIDGET_EXPORT GraphPanelPlotWidget : public QwtPlot,
void setGridLinesColor(const QColor &pGridLinesColor);

bool isLegendVisible() const;
void setLegendVisible(bool pLegendActive);
void setLegendVisible(bool pLegendVisible);

Qt::PenStyle pointCoordinatesStyle() const;
void setPointCoordinatesStyle(const Qt::PenStyle &pPointCoordinatesStyle);
Expand Down

0 comments on commit b68a863

Please sign in to comment.