Limo
A simple mod manager
Loading...
Searching...
No Matches
changelogdialog.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QDialog>
10
11
12namespace Ui
13{
14class ChangelogDialog;
15}
16
20class ChangelogDialog : public QDialog
21{
22 Q_OBJECT
23
24public:
30 explicit ChangelogDialog(bool is_flatpak, QWidget* parent = nullptr);
37 bool hasChanges() const;
38
39private slots:
45
46private:
48 Ui::ChangelogDialog* ui;
52 std::vector<VersionChangelog> versions_;
54 bool has_changes_ = false;
55};
void on_version_box_currentIndexChanged(int index)
Updates the changelog text to show all changelogs since the selected version.
Definition changelogdialog.cpp:56
bool hasChanges() const
Checks if changelogs could be found.
Definition changelogdialog.cpp:112
std::vector< VersionChangelog > versions_
For every version: The changelog for that version.
Definition changelogdialog.h:52
bool is_flatpak_
If true: This app is running inside of a flatpak sandbox.
Definition changelogdialog.h:50
ChangelogDialog(bool is_flatpak, QWidget *parent=nullptr)
Reads all changes from the changelog file.
Definition changelogdialog.cpp:14
~ChangelogDialog()
Deletes the UI.
Definition changelogdialog.cpp:51
Ui::ChangelogDialog * ui
Contains auto.generated UI elements.
Definition changelogdialog.h:48
bool has_changes_
Indicates that changes exist.
Definition changelogdialog.h:54
Header for the VersionChangeLog class.