iOS support

This commit is contained in:
Alex Spataru 2014-11-21 23:05:00 -06:00
parent 9ecad33138
commit 0104c18332
4 changed files with 53 additions and 46 deletions

View File

@ -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) {

View File

@ -13,13 +13,11 @@
#include <math.h>
namespace Ui
{
namespace Ui {
class DownloadDialog;
}
class DownloadDialog : public QWidget
{
class DownloadDialog : public QWidget {
Q_OBJECT
public:

View File

@ -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
}

View File

@ -16,8 +16,7 @@
#include "dialogs/download_dialog.h"
class QSimpleUpdater : public QObject
{
class QSimpleUpdater : public QObject {
Q_OBJECT
public: