History

PR Changes

Leonardo Murillo committed 12 years ago

Commit 93e4dc71 parent e0761db4 files · +14 −13Browse files

Showing the changes to interface/src/ui/UpdateDialog.cpp (1 of 4 files). Show all

Unified · Split

interface/src/ui/UpdateDialog.cpp+7−6
@@ -23,7 +23,7 @@ UpdateDialog::UpdateDialog(QWidget *parent, QString releaseNotes, QString latest · 22 unmodified lines
2323
2424 QFile updateDialogUi("resources/ui/updateDialog.ui");
2525 updateDialogUi.open(QFile::ReadOnly);
26− dialogWidget = updateDialogLoader.load(&updateDialogUi, parent);
26+ _dialogWidget = updateDialogLoader.load(&updateDialogUi, parent);
2727 updateDialogUi.close();
2828
2929 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
3333
3434 setAttribute(Qt::WA_DeleteOnClose);
3535
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");
4040
4141 updateContent->setText(updateRequired);
4242
4343 connect(downloadButton, SIGNAL(released()), this, SLOT(handleDownload(QUrl downloadURL)));
4444 connect(skipButton, SIGNAL(released()), this, SLOT(handleSkip()));
4545 connect(closeButton, SIGNAL(released()), this, SLOT(handleClose()));
46− dialogWidget->show();
46+ _dialogWidget->show();
4747 }
4848
4949 void UpdateDialog::handleDownload(QUrl downloadURL) {
@@ -53,6 +53,7 @@ void UpdateDialog::handleDownload(QUrl downloadURL) { · 3 unmodified lines
5353 }
5454
5555 void UpdateDialog::handleSkip() {
56+
5657 this->close();
5758 }
5859