| 259 | } |
| 260 | |
| 261 | const QString ScopyJS::getScriptContent(QFile *file) |
| 262 | { |
| 263 | QTextStream stream(file); |
| 264 | QString firstLine = stream.readLine(); |
| 265 | if(!firstLine.startsWith("#!")) |
| 266 | stream.seek(0); |
| 267 | |
| 268 | QString content = stream.readAll(); |
| 269 | file->close(); |
| 270 | return content; |
| 271 | } |
| 272 | |
| 273 | #include "moc_scopyjs.cpp" |