more dialogs

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-05-31 20:17:05 +03:00
parent dcc76d250f
commit f1c64d0d44
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318
3 changed files with 14 additions and 0 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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()