iOS support
This commit is contained in:
parent
9ecad33138
commit
0104c18332
@ -195,7 +195,12 @@ void DownloadDialog::updateProgress (qint64 received, qint64 total) {
|
||||
}
|
||||
|
||||
void DownloadDialog::ignoreSslErrors (QNetworkReply *reply, const QList<QSslError> &error) {
|
||||
#ifndef Q_OS_IOS
|
||||
reply->ignoreSslErrors (error);
|
||||
#else
|
||||
Q_UNUSED (reply);
|
||||
Q_UNUSED (error);
|
||||
#endif
|
||||
}
|
||||
|
||||
float DownloadDialog::roundNumber (const float &input) {
|
||||
|
@ -13,13 +13,11 @@
|
||||
|
||||
#include <math.h>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
namespace Ui {
|
||||
class DownloadDialog;
|
||||
}
|
||||
|
||||
class DownloadDialog : public QWidget
|
||||
{
|
||||
class DownloadDialog : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
@ -193,5 +193,10 @@ void QSimpleUpdater::processDownloadedChangelog (QNetworkReply *reply) {
|
||||
}
|
||||
|
||||
void QSimpleUpdater::ignoreSslErrors (QNetworkReply *reply, const QList<QSslError> &error) {
|
||||
#ifndef Q_OS_IOS
|
||||
reply->ignoreSslErrors (error);
|
||||
#else
|
||||
Q_UNUSED (reply);
|
||||
Q_UNUSED (error);
|
||||
#endif
|
||||
}
|
@ -16,8 +16,7 @@
|
||||
|
||||
#include "dialogs/download_dialog.h"
|
||||
|
||||
class QSimpleUpdater : public QObject
|
||||
{
|
||||
class QSimpleUpdater : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user