mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
* 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
42 lines
929 B
C++
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;
|
|
}
|