Fix?
This commit is contained in:
parent
51b597bb73
commit
1e548e9460
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue