- std::string contents = support::getFileContents(filename_);
- if (contents.empty())
- contents = "Error -> Cannot load file!";
+ QString contents = toqstr(filename_.fileContents("UTF-8"));
+ if (contents.isEmpty())
+ contents = qt_("Error -> Cannot load file!");