2 * Copyright (C) 2018 The UBports project
3 * Written by: Marius Gripsgard <marius@ubports.com>
5 * This program is free software: you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 3, as published
7 * by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranties of
11 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12 * PURPOSE. See the GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
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());
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list