MCPcopy Create free account
hub / github.com/KDAB/KDChart / foreach

Function foreach

examples/Widget/Advanced/mainwindow.cpp:64–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 bool ok;
63 QVector<qreal> vec;
64 foreach (const QString &str, parts) {
65 const qreal val = str.toDouble(&ok);
66 if (ok)
67 vec.append(val);
68 }
69 const int rows = widget->diagram()->model()->rowCount();
70 if (vec.count() != rows) {
71 QMessageBox::warning(this, "Wrong number of values entered!",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected