Add update notification support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user