28 if(QFile::exists(changelogPath()))
29 m_fsWatcher.addPath(changelogPath());
30 connect(&m_fsWatcher, &QFileSystemWatcher::fileChanged,
this, &Changelog::watcherFileChanged);
33QString Changelog::changelogPath()
35 return "/usr/share/ubports/changelogs/current";
38QString Changelog::text()
const
43void Changelog::readChangelog()
45 if(!QFile::exists(changelogPath()))
47 QFile f(changelogPath());
48 if (!f.open(QFile::ReadOnly | QFile::Text))
return;
50 m_text = in.readAll();
54void Changelog::watcherFileChanged()
57 m_fsWatcher.removePath(changelogPath());