graphgallery example: Streamline the code a bit


- Populate the data rows using reserve()/append() instead
  of resize() / assign.
- Use prefix increment
- Use QStringView when splitting the data file lines

Pick-to: 6.5
Task-number: QTBUG-110698
Change-Id: I70fed07a9850e2636e6085b9a9190f1e5a062a67
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commited80c940b659455e2bd98700157f5fc78a17b41c
parent1bfc0919b8ddb0f1576b6f7ad20a72dc5d23f3e4
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
committerFriedemann Kleint <Friedemann.Kleint@qt.io>
commit timeFri, 3 Mar 2023 07:36:41 +0100