mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-08-03 19:37:45 -04:00
more dialogs
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
dcc76d250f
commit
f1c64d0d44
@ -37,6 +37,7 @@
|
||||
#include <QIcon>
|
||||
#include "Application.h"
|
||||
#include "BuildConfig.h"
|
||||
#include "DesktopServices.h"
|
||||
#include "Markdown.h"
|
||||
#include "StringUtils.h"
|
||||
#include "ui_AboutDialog.h"
|
||||
@ -180,6 +181,10 @@ AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent), ui(new Ui::AboutDia
|
||||
connect(ui->closeButton, &QPushButton::clicked, this, &AboutDialog::close);
|
||||
|
||||
connect(ui->aboutQt, &QPushButton::clicked, &QApplication::aboutQt);
|
||||
if (DesktopServices::isGameScope()) {
|
||||
showFullScreen();
|
||||
setFixedSize(this->width(), this->height());
|
||||
}
|
||||
}
|
||||
|
||||
AboutDialog::~AboutDialog()
|
||||
|
@ -128,6 +128,10 @@ InstallLoaderDialog::InstallLoaderDialog(std::shared_ptr<PackProfile> profile, c
|
||||
connect(container, &PageContainer::selectedPageChanged, this, [this](BasePage* previous, BasePage* current) { validate(current); });
|
||||
pageCast(container->selectedPage())->selectSearch();
|
||||
validate(container->selectedPage());
|
||||
if (DesktopServices::isGameScope()) {
|
||||
showFullScreen();
|
||||
setFixedSize(this->width(), this->height());
|
||||
}
|
||||
}
|
||||
|
||||
QList<BasePage*> InstallLoaderDialog::getPages()
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include <QtWidgets/QPushButton>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
|
||||
#include "DesktopServices.h"
|
||||
#include "ui/widgets/VersionSelectWidget.h"
|
||||
|
||||
#include "BaseVersion.h"
|
||||
@ -90,6 +91,10 @@ VersionSelectDialog::VersionSelectDialog(BaseVersionList* vlist, QString title,
|
||||
if (!cancelable) {
|
||||
m_buttonBox->button(QDialogButtonBox::Cancel)->setEnabled(false);
|
||||
}
|
||||
if (DesktopServices::isGameScope()) {
|
||||
this->showFullScreen();
|
||||
this->setFixedSize(this->width(), this->height());
|
||||
}
|
||||
}
|
||||
|
||||
void VersionSelectDialog::retranslate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user