mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
+
This commit is contained in:
parent
2b2fbb76c2
commit
823da22e66
@ -212,29 +212,31 @@ void CheckUpdate::setupUI(const QString& downloadUrl, const QString& latestDate,
|
|||||||
":</b></td>"
|
":</b></td>"
|
||||||
"<td>%3</td>"
|
"<td>%3</td>"
|
||||||
"<td>(%4)</td>"
|
"<td>(%4)</td>"
|
||||||
"</tr></table></p>"
|
"</tr></table></p>")
|
||||||
"<p>" +
|
|
||||||
tr("Do you want to update?") + "</p>")
|
|
||||||
.arg(currentRev.left(7), currentDate, latestRev, latestDate);
|
.arg(currentRev.left(7), currentDate, latestRev, latestDate);
|
||||||
|
|
||||||
QLabel* updateLabel = new QLabel(updateText, this);
|
QLabel* updateLabel = new QLabel(updateText, this);
|
||||||
layout->addWidget(updateLabel);
|
layout->addWidget(updateLabel);
|
||||||
|
|
||||||
// Setup bottom layout with action buttons
|
// Setup bottom layout with action buttons
|
||||||
QHBoxLayout* bottomLayout = new QHBoxLayout();
|
|
||||||
autoUpdateCheckBox = new QCheckBox(tr("Check for Updates at Startup"), this);
|
autoUpdateCheckBox = new QCheckBox(tr("Check for Updates at Startup"), this);
|
||||||
|
layout->addWidget(autoUpdateCheckBox);
|
||||||
|
|
||||||
|
QHBoxLayout* updatePromptLayout = new QHBoxLayout();
|
||||||
|
QLabel* updatePromptLabel = new QLabel(tr("Do you want to update?"), this);
|
||||||
|
updatePromptLayout->addWidget(updatePromptLabel);
|
||||||
|
|
||||||
yesButton = new QPushButton(tr("Update"), this);
|
yesButton = new QPushButton(tr("Update"), this);
|
||||||
noButton = new QPushButton(tr("No"), this);
|
noButton = new QPushButton(tr("No"), this);
|
||||||
yesButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
yesButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
||||||
noButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
noButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
||||||
bottomLayout->addWidget(autoUpdateCheckBox);
|
|
||||||
|
|
||||||
QSpacerItem* spacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
QSpacerItem* spacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||||
bottomLayout->addItem(spacer);
|
updatePromptLayout->addItem(spacer);
|
||||||
|
updatePromptLayout->addWidget(yesButton);
|
||||||
|
updatePromptLayout->addWidget(noButton);
|
||||||
|
|
||||||
bottomLayout->addWidget(yesButton);
|
layout->addLayout(updatePromptLayout);
|
||||||
bottomLayout->addWidget(noButton);
|
|
||||||
layout->addLayout(bottomLayout);
|
|
||||||
|
|
||||||
// Don't show changelog button if:
|
// Don't show changelog button if:
|
||||||
// The current version is a pre-release and the version to be downloaded is a release.
|
// The current version is a pre-release and the version to be downloaded is a release.
|
||||||
@ -262,6 +264,7 @@ void CheckUpdate::setupUI(const QString& downloadUrl, const QString& latestDate,
|
|||||||
textField->setVisible(true);
|
textField->setVisible(true);
|
||||||
toggleButton->setText(tr("Hide Changelog"));
|
toggleButton->setText(tr("Hide Changelog"));
|
||||||
adjustSize();
|
adjustSize();
|
||||||
|
textField->setFixedWidth(textField->width() + 20);
|
||||||
} else {
|
} else {
|
||||||
textField->setVisible(false);
|
textField->setVisible(false);
|
||||||
toggleButton->setText(tr("Show Changelog"));
|
toggleButton->setText(tr("Show Changelog"));
|
||||||
|
Loading…
Reference in New Issue
Block a user