| 7 |
|
#else |
| 8 |
|
QString AppExecutable="./"+AppName; // Mac OS needs unix like executing |
| 9 |
|
#endif |
| 10 |
< |
QString AppVersion="2.0b"; |
| 10 |
> |
QString AppVersion="2.0c"; |
| 11 |
|
} |
| 12 |
|
|
| 13 |
|
namespace Util{ |
| 132 |
|
stringList = mySpacedString.split(" "); |
| 133 |
|
|
| 134 |
|
foreach(QString value, stringList){ |
| 135 |
< |
intList << value.toInt(); |
| 135 |
> |
bool ok; |
| 136 |
> |
|
| 137 |
> |
intList << value.toInt(&ok); |
| 138 |
> |
|
| 139 |
> |
if(!ok){ |
| 140 |
> |
throw std::runtime_error(QString("Impossible to convert string '" + value + "' to int!").toUtf8().constData()); |
| 141 |
> |
} |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
return intList; |
| 151 |
|
stringList = mySpacedString.split(" "); |
| 152 |
|
|
| 153 |
|
foreach(QString value, stringList){ |
| 154 |
< |
doubleList << value.toDouble(); |
| 154 |
> |
bool ok; |
| 155 |
> |
|
| 156 |
> |
doubleList << value.toDouble(&ok); |
| 157 |
> |
|
| 158 |
> |
if(!ok){ |
| 159 |
> |
throw std::runtime_error(QString("Impossible to convert string '" + value + "' to double!").toUtf8().constData()); |
| 160 |
> |
} |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
return doubleList; |