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) {
qApp->processEvents();
m_ui->m_lblStatus->setStatus(WidgetWithStatus::Information,
@ -177,7 +177,7 @@ void FormUpdate::updateCompleted(QNetworkReply::NetworkError status, QByteArray
break;
}
}
#endif
//#endif
void FormUpdate::startUpdate() {
QString url_file;

View File

@ -55,11 +55,11 @@ class FormUpdate : public QDialog {
void checkForUpdates();
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 updateCompleted(QNetworkReply::NetworkError status, QByteArray contents);
void saveUpdateFile(const QByteArray &file_contents);
#endif
//#endif
private:
#if defined(Q_OS_WIN) || defined(Q_OS_OS2)