replace own workaround for version checking to QVersionNumber

QVersionNumber has been introduced since Qt-5.6 and it is better to use
it instead of custom version checking
This commit is contained in:
2016-04-04 10:47:12 +03:00
parent fa795121aa
commit 7d1e035240
2 changed files with 18 additions and 26 deletions

View File

@ -21,6 +21,7 @@
#include <QMessageBox>
#include <QObject>
#include <QVersionNumber>
class QNetworkReply;
@ -36,15 +37,15 @@ public:
bool checkVersion();
private slots:
void showInfo(const QString version);
void showUpdates(const QString version);
void showInfo(const QVersionNumber version);
void showUpdates(const QVersionNumber version);
void userReplyOnUpdates(QAbstractButton *button);
void versionReplyRecieved(QNetworkReply *reply, const bool showAnyway);
private:
QMessageBox *genMessageBox(const QString title, const QString body,
const QMessageBox::StandardButtons buttons);
QString m_foundVersion;
QVersionNumber m_foundVersion;
QString m_genericConfig;
};