This commit is contained in:
Martin Rotter 2014-04-13 10:32:21 +02:00
parent 51b597bb73
commit 1e548e9460
2 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ void FormUpdate::checkForUpdates() {
} }
} }
#if defined(Q_OS_WIN) || defined(Q_OS_OS2) //#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
void FormUpdate::updateProgress(qint64 bytes_received, qint64 bytes_total) { void FormUpdate::updateProgress(qint64 bytes_received, qint64 bytes_total) {
qApp->processEvents(); qApp->processEvents();
m_ui->m_lblStatus->setStatus(WidgetWithStatus::Information, m_ui->m_lblStatus->setStatus(WidgetWithStatus::Information,
@ -177,7 +177,7 @@ void FormUpdate::updateCompleted(QNetworkReply::NetworkError status, QByteArray
break; break;
} }
} }
#endif //#endif
void FormUpdate::startUpdate() { void FormUpdate::startUpdate() {
QString url_file; QString url_file;

View File

@ -55,11 +55,11 @@ class FormUpdate : public QDialog {
void checkForUpdates(); void checkForUpdates();
void startUpdate(); void startUpdate();
#if defined(Q_OS_WIN) || defined(Q_OS_OS2) //#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
void updateProgress(qint64 bytes_received, qint64 bytes_total); void updateProgress(qint64 bytes_received, qint64 bytes_total);
void updateCompleted(QNetworkReply::NetworkError status, QByteArray contents); void updateCompleted(QNetworkReply::NetworkError status, QByteArray contents);
void saveUpdateFile(const QByteArray &file_contents); void saveUpdateFile(const QByteArray &file_contents);
#endif //#endif
private: private:
#if defined(Q_OS_WIN) || defined(Q_OS_OS2) #if defined(Q_OS_WIN) || defined(Q_OS_OS2)