Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Series not in the chart. Please addSeries to chart first. #6

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/charts/qabstractseries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void QAbstractSeries::hide()
}

/*!
Attaches the axis specified by \a axis to the series.
Attaches the axis specified by \a axis to the series. attachAxis() should be called after addSeries().

Returns \c true if the axis was attached successfully, \c false otherwise.

Expand All @@ -379,12 +379,12 @@ bool QAbstractSeries::attachAxis(QAbstractAxis* axis)
if (d_ptr->m_chart)
return d_ptr->m_chart->d_ptr->m_dataset->attachAxis(this, axis);

qWarning("Series not in the chart. Please addSeries to chart first.");
qWarning("Series not in the chart. attachAxis() should be called after addSeries().");
return false;
}

/*!
Detaches the axis specified by \a axis from the series.
Detaches the axis specified by \a axis from the series.

Returns \c true if the axis was detached successfully, \c false otherwise.

Expand Down