mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Add update notification support
This commit is contained in:
parent
6f99f5d64c
commit
7385dd0838
11 changed files with 370 additions and 257 deletions
|
@ -25,6 +25,7 @@
|
|||
#include <QNetworkReply>
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
#include <QVersionNumber>
|
||||
#ifndef QT_NO_WIDGETS
|
||||
#include <QFileDialog>
|
||||
#endif
|
||||
|
@ -321,6 +322,12 @@ QString ImageWriter::constantVersion() const
|
|||
return IMAGER_VERSION_STR;
|
||||
}
|
||||
|
||||
/* Returns true if version argument is newer than current program */
|
||||
bool ImageWriter::isVersionNewer(const QString &version)
|
||||
{
|
||||
return QVersionNumber::fromString(version) > QVersionNumber::fromString(IMAGER_VERSION_STR);
|
||||
}
|
||||
|
||||
void ImageWriter::setCustomOsListUrl(const QUrl &url)
|
||||
{
|
||||
_repo = url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue