Limo
A simple mod manager
Loading...
Searching...
No Matches
ChangelogDialog Class Reference

Dialog used to display changelogs for Limo versions. More...

#include <changelogdialog.h>

Inheritance diagram for ChangelogDialog:
Collaboration diagram for ChangelogDialog:

Public Member Functions

 ChangelogDialog (bool is_flatpak, QWidget *parent=nullptr)
 Reads all changes from the changelog file.
 
 ~ChangelogDialog ()
 Deletes the UI.
 
bool hasChanges () const
 Checks if changelogs could be found.
 

Private Slots

void on_version_box_currentIndexChanged (int index)
 Updates the changelog text to show all changelogs since the selected version.
 

Private Attributes

Ui::ChangelogDialog * ui
 Contains auto.generated UI elements.
 
bool is_flatpak_
 If true: This app is running inside of a flatpak sandbox.
 
std::vector< VersionChangelogversions_
 For every version: The changelog for that version.
 
bool has_changes_ = false
 Indicates that changes exist.
 

Detailed Description

Dialog used to display changelogs for Limo versions.

Constructor & Destructor Documentation

◆ ChangelogDialog()

ChangelogDialog::ChangelogDialog ( bool is_flatpak,
QWidget * parent = nullptr )
explicit

Reads all changes from the changelog file.

Parameters
is_flatpakIf true: This app is running inside of a flatpak sandbox.
parentParent widget.

Member Function Documentation

◆ hasChanges()

bool ChangelogDialog::hasChanges ( ) const

Checks if changelogs could be found.

Returns
True if found.

◆ on_version_box_currentIndexChanged

void ChangelogDialog::on_version_box_currentIndexChanged ( int index)
privateslot

Updates the changelog text to show all changelogs since the selected version.

Parameters
indexSelected version index.

The documentation for this class was generated from the following files: