MCPcopy Create free account
hub / github.com/KDE/kdevelop / readFile

Method readFile

plugins/qmakemanager/parser/qmakedriver.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool Driver::readFile(const QString& filename)
30{
31 QFile f(filename);
32 if (!f.open(QIODevice::ReadOnly)) {
33 qCWarning(KDEV_QMAKE) << "Couldn't open project file:" << filename;
34 return false;
35 }
36 QTextStream s(&f);
37 m_content = s.readAll();
38 return true;
39}
40void Driver::setContent(const QString& content)
41{
42 m_content = content;

Callers 4

parseFileMethod · 0.80
readMethod · 0.80
foreachFunction · 0.80
fs.jsFile · 0.80

Calls 1

openMethod · 0.45

Tested by

no test coverage detected