MCPcopy Create free account
hub / github.com/YACReader/yacreader / fileToString

Method fileToString

custom_widgets/help_about_dialog.cpp:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87QString HelpAboutDialog::fileToString(const QString &path)
88{
89 QFile f(path);
90 f.open(QIODevice::ReadOnly);
91 QTextStream txtS(&f);
92
93 txtS.setEncoding(QStringConverter::Utf8);
94
95 QString content = txtS.readAll();
96 f.close();
97
98 return content;
99}
100
101void HelpAboutDialog::loadSystemInfo()
102{

Callers

nothing calls this directly

Calls 2

openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected