mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-16 07:09:58 +00:00
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:
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user