diff options
author | Tero Ahola <tero.ahola@digia.com> | 2012-12-03 11:53:15 +0200 |
---|---|---|
committer | Tero Ahola <tero.ahola@digia.com> | 2012-12-03 11:53:15 +0200 |
commit | 098ca1392d78dad20cc9ea3a488b7a97cf211578 (patch) | |
tree | 3cd560b692bc2930757abc679725affbf7bc6946 /examples | |
parent | 450944fbf2b1d6f204a7a93c4cd4de6e2df2b943 (diff) |
Line and bar example now has a name for the line
Diffstat (limited to 'examples')
-rw-r--r-- | examples/lineandbar/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/lineandbar/main.cpp b/examples/lineandbar/main.cpp index 91249624..65e7e7ad 100644 --- a/examples/lineandbar/main.cpp +++ b/examples/lineandbar/main.cpp @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) QBarSet *set1 = new QBarSet("John"); QBarSet *set2 = new QBarSet("Axel"); QBarSet *set3 = new QBarSet("Mary"); - QBarSet *set4 = new QBarSet("Samantha"); + QBarSet *set4 = new QBarSet("Sam"); *set0 << 1 << 2 << 3 << 4 << 5 << 6; *set1 << 5 << 0 << 0 << 4 << 0 << 7; @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) //![8] QLineSeries *lineseries = new QLineSeries(); - + lineseries->setName("trend"); lineseries->append(QPoint(0, 4)); lineseries->append(QPoint(1, 15)); lineseries->append(QPoint(2, 20)); |