##// END OF EJS Templates
Spelling fix QLegend::setAlignmnent -> setAlignment
Jani Honkonen -
r907:e81fc8ea1ebf
parent child
Show More
@@ -367,7 +367,7 void ThemeWidget::updateUI()
367 }
367 }
368 else
368 else
369 foreach (QChartView *chartView, m_charts) {
369 foreach (QChartView *chartView, m_charts) {
370 chartView->chart()->legend()->setAlignmnent(alignment);
370 chartView->chart()->legend()->setAlignment(alignment);
371 chartView->chart()->legend()->show();
371 chartView->chart()->legend()->show();
372 }
372 }
373 }
373 }
@@ -67,7 +67,7 int main(int argc, char *argv[])
67
67
68 //![5]
68 //![5]
69 chart->legend()->setVisible(true);
69 chart->legend()->setVisible(true);
70 chart->legend()->setAlignmnent(QLegend::AlignmentBottom);
70 chart->legend()->setAlignment(QLegend::AlignmentBottom);
71 chart->axisY()->setNiceNumbers(true);
71 chart->axisY()->setNiceNumbers(true);
72 //![5]
72 //![5]
73
73
@@ -67,7 +67,7 int main(int argc, char *argv[])
67
67
68 //![5]
68 //![5]
69 chart->legend()->setVisible(true);
69 chart->legend()->setVisible(true);
70 chart->legend()->setAlignmnent(QLegend::AlignmentBottom);
70 chart->legend()->setAlignment(QLegend::AlignmentBottom);
71 //![5]
71 //![5]
72
72
73 //![6]
73 //![6]
@@ -41,7 +41,7 int main(int argc, char *argv[])
41 chart->setTheme(QChart::ChartThemeLight);
41 chart->setTheme(QChart::ChartThemeLight);
42 chart->setAnimationOptions(QChart::AllAnimations);
42 chart->setAnimationOptions(QChart::AllAnimations);
43 chart->legend()->setVisible(true);
43 chart->legend()->setVisible(true);
44 chart->legend()->setAlignmnent(QLegend::AlignmentRight);
44 chart->legend()->setAlignment(QLegend::AlignmentRight);
45
45
46 QPieSeries* yearSeries = new QPieSeries(&window);
46 QPieSeries* yearSeries = new QPieSeries(&window);
47 yearSeries->setName("Sales by year - All");
47 yearSeries->setName("Sales by year - All");
@@ -67,7 +67,7 int main(int argc, char *argv[])
67
67
68 //![5]
68 //![5]
69 chart->legend()->setVisible(true);
69 chart->legend()->setVisible(true);
70 chart->legend()->setAlignmnent(QLegend::AlignmentBottom);
70 chart->legend()->setAlignment(QLegend::AlignmentBottom);
71 chart->axisY()->setNiceNumbers(true);
71 chart->axisY()->setNiceNumbers(true);
72 //![5]
72 //![5]
73
73
@@ -100,7 +100,7 int main(int argc, char *argv[])
100 drilldownChart->axisX()->setGridLineVisible(false);
100 drilldownChart->axisX()->setGridLineVisible(false);
101 drilldownChart->axisY()->setNiceNumbers(true);
101 drilldownChart->axisY()->setNiceNumbers(true);
102 drilldownChart->legend()->setVisible(true);
102 drilldownChart->legend()->setVisible(true);
103 drilldownChart->legend()->setAlignmnent(QLegend::AlignmentBottom);
103 drilldownChart->legend()->setAlignment(QLegend::AlignmentBottom);
104 //! [7]
104 //! [7]
105
105
106 QChartView *chartView = new QChartView(drilldownChart);
106 QChartView *chartView = new QChartView(drilldownChart);
@@ -169,7 +169,7 QPen QLegend::pen() const
169 Sets the \a alignment for legend. Legend tries to paint itself on the defined position in chart.
169 Sets the \a alignment for legend. Legend tries to paint itself on the defined position in chart.
170 \sa QLegend::Alignment
170 \sa QLegend::Alignment
171 */
171 */
172 void QLegend::setAlignmnent(QLegend::Alignments alignment)
172 void QLegend::setAlignment(QLegend::Alignments alignment)
173 {
173 {
174 if(m_alignment!=alignment && m_attachedToChart) {
174 if(m_alignment!=alignment && m_attachedToChart) {
175 m_alignment = alignment;
175 m_alignment = alignment;
@@ -69,7 +69,7 public:
69 void setPen(const QPen &pen);
69 void setPen(const QPen &pen);
70 QPen pen() const;
70 QPen pen() const;
71
71
72 void setAlignmnent(QLegend::Alignments alignment);
72 void setAlignment(QLegend::Alignments alignment);
73 QLegend::Alignments alignment() const;
73 QLegend::Alignments alignment() const;
74
74
75 void detachFromChart();
75 void detachFromChart();
General Comments 0
You need to be logged in to leave comments. Login now