MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / readLine

Method readLine

pluginbase/src/jsfileio.cpp:64–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64QString JsFileIo::readLine(const QString &path, const int lineNumber)
65{
66 QFile file(path);
67 int i = 0;
68 QString data;
69
70 if(file.open(QIODevice::ReadOnly)) {
71 QTextStream stream(&file);
72 while(i <= lineNumber) {
73 data = stream.readLine();
74 if(stream.atEnd())
75 break;
76 i++;
77 }
78 }
79 return data;
80}
81
82QString JsFileIo::getTempPath() { return QDir::tempPath(); }
83

Callers 10

loadDataMethod · 0.80
readMethod · 0.80
readAllMethod · 0.80
loadDataMethod · 0.80
applyFirFilterMethod · 0.80
getScriptContentMethod · 0.80
aboutPageMethod · 0.80
hasTextMethod · 0.80
getScriptContentMethod · 0.80
openMethod · 0.80

Calls 1

openMethod · 0.45

Tested by

no test coverage detected