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 | 24 | QFile updateDialogUi("resources/ui/updateDialog.ui"); |
| 25 | 25 | updateDialogUi.open(QFile::ReadOnly); |
| 26 | − dialogWidget = updateDialogLoader.load(&updateDialogUi, parent); | |
| 26 | + _dialogWidget = updateDialogLoader.load(&updateDialogUi, parent); | |
| 27 | 27 | updateDialogUi.close(); |
| 28 | 28 | |
| 29 | 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 | 34 | setAttribute(Qt::WA_DeleteOnClose); |
| 35 | 35 | |
| 36 | − QPushButton *downloadButton = dialogWidget->findChild<QPushButton *>("downloadButton"); | |
| 37 | − QPushButton *skipButton = dialogWidget->findChild<QPushButton *>("skipButton"); | |
| 38 | − QPushButton *closeButton = dialogWidget->findChild<QPushButton *>("closeButton"); | |
| 39 | − QLabel *updateContent = dialogWidget->findChild<QLabel *>("updateContent"); | |
| 36 | + QPushButton* downloadButton = _dialogWidget->findChild<QPushButton*>("downloadButton"); | |
| 37 | + QPushButton* skipButton = _dialogWidget->findChild<QPushButton*>("skipButton"); | |
| 38 | + QPushButton* closeButton = _dialogWidget->findChild<QPushButton*>("closeButton"); | |
| 39 | + QLabel* updateContent = _dialogWidget->findChild<QLabel*>("updateContent"); | |
| 40 | 40 | |
| 41 | 41 | updateContent->setText(updateRequired); |
| 42 | 42 | |
| 43 | 43 | connect(downloadButton, SIGNAL(released()), this, SLOT(handleDownload(QUrl downloadURL))); |
| 44 | 44 | connect(skipButton, SIGNAL(released()), this, SLOT(handleSkip())); |
| 45 | 45 | connect(closeButton, SIGNAL(released()), this, SLOT(handleClose())); |
| 46 | − dialogWidget->show(); | |
| 46 | + _dialogWidget->show(); | |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | void UpdateDialog::handleDownload(QUrl downloadURL) { |
| @@ -53,6 +53,7 @@ void UpdateDialog::handleDownload(QUrl downloadURL) { · 3 unmodified lines | ||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | void UpdateDialog::handleSkip() { |
| 56 | + | |
| 56 | 57 | this->close(); |
| 57 | 58 | } |
| 58 | 59 | |