QList cannot be automatically serialized to/from QSettings (i.e. QVariant) so turn it to a QVariantList
| 36 | |
| 37 | // QList<int> cannot be automatically serialized to/from QSettings (i.e. QVariant) so turn it to a QVariantList |
| 38 | static QVariantList QListToQVariantList(const QList<int> intList) |
| 39 | { |
| 40 | QVariantList vl; |
| 41 | for (const int i : intList){ |
| 42 | vl.append(i); |
| 43 | } |
| 44 | return vl; |
| 45 | } |
| 46 | |
| 47 | // Do the opposite of the function above |
| 48 | static QList<int> QVariantListToQList(const QVariantList &variantList) { |
no outgoing calls
no test coverage detected