Showing the changes to interface/src/ui/UpdateDialog.cpp (1 of 4 files). Show all
Unified · Split
| @@ -23,7 +23,7 @@ UpdateDialog::UpdateDialog(QWidget *parent, QString releaseNotes, QString latest · 22 unmodified lines | |||
| 23 | 23 | ||
| 24 | QFile updateDialogUi("resources/ui/updateDialog.ui"); | 24 | QFile updateDialogUi("resources/ui/updateDialog.ui"); |
| 25 | updateDialogUi.open(QFile::ReadOnly); | 25 | updateDialogUi.open(QFile::ReadOnly); |
| 26 | dialogWidget = updateDialogLoader.load(&updateDialogUi, parent); | 26 | _dialogWidget = updateDialogLoader.load(&updateDialogUi, parent); |
| 27 | updateDialogUi.close(); | 27 | updateDialogUi.close(); |
| 28 | 28 | ||
| 29 | const QString updateRequired = QString("You are currently running build %1, the latest build released is %2. \ | 29 | const QString updateRequired = QString("You are currently running build %1, the latest build released is %2. \ |
| @@ -33,17 +33,17 @@ UpdateDialog::UpdateDialog(QWidget *parent, QString releaseNotes, QString latest · 3 unmodified lines | |||
| 33 | 33 | ||
| 34 | setAttribute(Qt::WA_DeleteOnClose); | 34 | setAttribute(Qt::WA_DeleteOnClose); |
| 35 | 35 | ||
| 36 | QPushButton *downloadButton = dialogWidget->findChild<QPushButton *>("downloadButton"); | 36 | QPushButton* downloadButton = _dialogWidget->findChild<QPushButton*>("downloadButton"); |
| 37 | QPushButton *skipButton = dialogWidget->findChild<QPushButton *>("skipButton"); | 37 | QPushButton* skipButton = _dialogWidget->findChild<QPushButton*>("skipButton"); |
| 38 | QPushButton *closeButton = dialogWidget->findChild<QPushButton *>("closeButton"); | 38 | QPushButton* closeButton = _dialogWidget->findChild<QPushButton*>("closeButton"); |
| 39 | QLabel *updateContent = dialogWidget->findChild<QLabel *>("updateContent"); | 39 | QLabel* updateContent = _dialogWidget->findChild<QLabel*>("updateContent"); |
| 40 | 40 | ||
| 41 | updateContent->setText(updateRequired); | 41 | updateContent->setText(updateRequired); |
| 42 | 42 | ||
| 43 | connect(downloadButton, SIGNAL(released()), this, SLOT(handleDownload(QUrl downloadURL))); | 43 | connect(downloadButton, SIGNAL(released()), this, SLOT(handleDownload(QUrl downloadURL))); |
| 44 | connect(skipButton, SIGNAL(released()), this, SLOT(handleSkip())); | 44 | connect(skipButton, SIGNAL(released()), this, SLOT(handleSkip())); |
| 45 | connect(closeButton, SIGNAL(released()), this, SLOT(handleClose())); | 45 | connect(closeButton, SIGNAL(released()), this, SLOT(handleClose())); |
| 46 | dialogWidget->show(); | 46 | _dialogWidget->show(); |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | void UpdateDialog::handleDownload(QUrl downloadURL) { | 49 | void UpdateDialog::handleDownload(QUrl downloadURL) { |
| @@ -53,6 +53,7 @@ void UpdateDialog::handleDownload(QUrl downloadURL) { · 3 unmodified lines | |||
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | void UpdateDialog::handleSkip() { | 55 | void UpdateDialog::handleSkip() { |
| 56 | |||
| 56 | this->close(); | 57 | this->close(); |
| 57 | } | 58 | } |
| 58 | 59 | ||