rpcs3/rpcs3/rpcs3qt/welcome_dialog.cpp
Megamouse b3efa75206 [Qt] UI improvements (#3558)
* Qt: Show tooltips in description box

* Qt: implement description subscription

* Qt: add gamelist resize for ctrl-+/-/wheel (simple zoom)

* Qt: handle strict mode in gui tab

* Qt: more highdpi stuff

* Qt: remove old tooltips from settings_dialog

* Qt: conform cpublit tooltip to new subscription model
2017-10-19 14:29:48 +03:00

42 lines
929 B
C++

#include "welcome_dialog.h"
#include "ui_welcome_dialog.h"
#include "gui_settings.h"
#include "Emu/System.h"
#include <QPushButton>
#include <QCheckBox>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
welcome_dialog::welcome_dialog(QWidget* parent) : QDialog(parent), ui(new Ui::welcome_dialog)
{
ui->setupUi(this);
setWindowFlags(windowFlags() & Qt::WindowTitleHint & ~Qt::WindowContextHelpButtonHint);
gui_settings* settings = new gui_settings(this);
ui->okay->setEnabled(false);
connect(ui->i_have_read, &QCheckBox::clicked, [=](bool checked)
{
ui->okay->setEnabled(checked);
});
connect(ui->do_not_show, &QCheckBox::clicked, [=](bool checked)
{
settings->SetValue(GUI::ib_show_welcome, QVariant(!checked));
});
connect(ui->okay, &QPushButton::pressed, this, &QDialog::accept);
layout()->setSizeConstraint(QLayout::SetFixedSize);
}
welcome_dialog::~welcome_dialog()
{
delete ui;
}