From e81fc8ea1ebfee1dea72d2ff5f57787348f1f5f3 2012-04-05 08:25:42 From: Jani Honkonen Date: 2012-04-05 08:25:42 Subject: [PATCH] Spelling fix QLegend::setAlignmnent -> setAlignment --- diff --git a/demos/chartthemes/themewidget.cpp b/demos/chartthemes/themewidget.cpp index 6f38953..18a22b6 100644 --- a/demos/chartthemes/themewidget.cpp +++ b/demos/chartthemes/themewidget.cpp @@ -367,7 +367,7 @@ void ThemeWidget::updateUI() } else foreach (QChartView *chartView, m_charts) { - chartView->chart()->legend()->setAlignmnent(alignment); + chartView->chart()->legend()->setAlignment(alignment); chartView->chart()->legend()->show(); } } diff --git a/examples/barchart/main.cpp b/examples/barchart/main.cpp index 1da3ef7..f9d07cd 100644 --- a/examples/barchart/main.cpp +++ b/examples/barchart/main.cpp @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) //![5] chart->legend()->setVisible(true); - chart->legend()->setAlignmnent(QLegend::AlignmentBottom); + chart->legend()->setAlignment(QLegend::AlignmentBottom); chart->axisY()->setNiceNumbers(true); //![5] diff --git a/examples/percentbarchart/main.cpp b/examples/percentbarchart/main.cpp index 4927be4..b60e6d1 100644 --- a/examples/percentbarchart/main.cpp +++ b/examples/percentbarchart/main.cpp @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) //![5] chart->legend()->setVisible(true); - chart->legend()->setAlignmnent(QLegend::AlignmentBottom); + chart->legend()->setAlignment(QLegend::AlignmentBottom); //![5] //![6] diff --git a/examples/piechartdrilldown/main.cpp b/examples/piechartdrilldown/main.cpp index c20e563..a48af78 100644 --- a/examples/piechartdrilldown/main.cpp +++ b/examples/piechartdrilldown/main.cpp @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) chart->setTheme(QChart::ChartThemeLight); chart->setAnimationOptions(QChart::AllAnimations); chart->legend()->setVisible(true); - chart->legend()->setAlignmnent(QLegend::AlignmentRight); + chart->legend()->setAlignment(QLegend::AlignmentRight); QPieSeries* yearSeries = new QPieSeries(&window); yearSeries->setName("Sales by year - All"); diff --git a/examples/stackedbarchart/main.cpp b/examples/stackedbarchart/main.cpp index 98d2fac..76c2c57 100644 --- a/examples/stackedbarchart/main.cpp +++ b/examples/stackedbarchart/main.cpp @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) //![5] chart->legend()->setVisible(true); - chart->legend()->setAlignmnent(QLegend::AlignmentBottom); + chart->legend()->setAlignment(QLegend::AlignmentBottom); chart->axisY()->setNiceNumbers(true); //![5] diff --git a/examples/stackedbarchartdrilldown/main.cpp b/examples/stackedbarchartdrilldown/main.cpp index b5ee936..8b9f179 100644 --- a/examples/stackedbarchartdrilldown/main.cpp +++ b/examples/stackedbarchartdrilldown/main.cpp @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) drilldownChart->axisX()->setGridLineVisible(false); drilldownChart->axisY()->setNiceNumbers(true); drilldownChart->legend()->setVisible(true); - drilldownChart->legend()->setAlignmnent(QLegend::AlignmentBottom); + drilldownChart->legend()->setAlignment(QLegend::AlignmentBottom); //! [7] QChartView *chartView = new QChartView(drilldownChart); diff --git a/src/qlegend.cpp b/src/qlegend.cpp index 80d4331..61b4e3f 100644 --- a/src/qlegend.cpp +++ b/src/qlegend.cpp @@ -169,7 +169,7 @@ QPen QLegend::pen() const Sets the \a alignment for legend. Legend tries to paint itself on the defined position in chart. \sa QLegend::Alignment */ -void QLegend::setAlignmnent(QLegend::Alignments alignment) +void QLegend::setAlignment(QLegend::Alignments alignment) { if(m_alignment!=alignment && m_attachedToChart) { m_alignment = alignment; diff --git a/src/qlegend.h b/src/qlegend.h index 6d50af3..3d25715 100644 --- a/src/qlegend.h +++ b/src/qlegend.h @@ -69,7 +69,7 @@ public: void setPen(const QPen &pen); QPen pen() const; - void setAlignmnent(QLegend::Alignments alignment); + void setAlignment(QLegend::Alignments alignment); QLegend::Alignments alignment() const; void detachFromChart();