From d3ea72e28ca82640e50900d42bf0c9ee76aa7f95 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Tue, 24 Apr 2018 12:32:17 +0200 Subject: Add proper 'deprecated' warnings Use Q_DECL_DEPRECATED to mark deprecated API. Fix examples to do not use deprecated functions. These functions were 'marked' as deprecated when multiple axes were introduced. Moreover, axis X/Y is an ambiguous term and not necessary mean Horizontal/Vertical axis. These deprecated methods also create an issue when given series should be attached to several Horizonal/ Vertical axes and calling them can cause unwanted results. Change-Id: I639e1b964240b80c2b3b93b74b061da324bca1ff Reviewed-by: Miikka Heikkinen --- examples/charts/splinechart/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/charts/splinechart') diff --git a/examples/charts/splinechart/main.cpp b/examples/charts/splinechart/main.cpp index db3a9324..b1fbb232 100644 --- a/examples/charts/splinechart/main.cpp +++ b/examples/charts/splinechart/main.cpp @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) chart->addSeries(series); chart->setTitle("Simple spline chart example"); chart->createDefaultAxes(); - chart->axisY()->setRange(0, 10); + chart->axes(Qt::Vertical).first()->setRange(0, 10); //![3] //![4] -- cgit v1.2.3