mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Qt: Deprecate proccessEvents() usage
This commit is contained in:
parent
3e427c57f0
commit
fce07bbeab
9 changed files with 215 additions and 221 deletions
|
@ -339,24 +339,23 @@ QIcon main_window::GetAppIcon() const
|
|||
return m_app_icon;
|
||||
}
|
||||
|
||||
bool main_window::OnMissingFw()
|
||||
void main_window::OnMissingFw()
|
||||
{
|
||||
const QString title = tr("Missing Firmware Detected!");
|
||||
const QString message = tr("Commercial games require the firmware (PS3UPDAT.PUP file) to be installed."
|
||||
"\n<br>For information about how to obtain the required firmware read the <a %0 href=\"https://rpcs3.net/quickstart\">quickstart guide</a>.").arg(gui::utils::get_link_style());
|
||||
|
||||
QMessageBox mb(QMessageBox::Question, title, message, QMessageBox::Ok | QMessageBox::Cancel, this, Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint | Qt::WindowStaysOnTopHint);
|
||||
mb.setTextFormat(Qt::RichText);
|
||||
QMessageBox* mb = new QMessageBox(QMessageBox::Question, title, message, QMessageBox::Ok | QMessageBox::Cancel, this, Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint | Qt::WindowStaysOnTopHint);
|
||||
mb->setTextFormat(Qt::RichText);
|
||||
|
||||
mb.button(QMessageBox::Ok)->setText(tr("Locate PS3UPDAT.PUP"));
|
||||
mb->button(QMessageBox::Ok)->setText(tr("Locate PS3UPDAT.PUP"));
|
||||
mb->setAttribute(Qt::WA_DeleteOnClose);
|
||||
mb->open();
|
||||
|
||||
if (mb.exec() == QMessageBox::Ok)
|
||||
connect(mb, &QDialog::accepted, this, [this]()
|
||||
{
|
||||
InstallPup();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
void main_window::ResizeIcons(int index)
|
||||
|
@ -520,13 +519,14 @@ void main_window::show_boot_error(game_boot_result status)
|
|||
}
|
||||
const QString link = tr("<br /><br />For information on setting up the emulator and dumping your PS3 games, read the <a %0 href=\"https://rpcs3.net/quickstart\">quickstart guide</a>.").arg(gui::utils::get_link_style());
|
||||
|
||||
QMessageBox msg;
|
||||
msg.setWindowTitle(tr("Boot Failed"));
|
||||
msg.setIcon(QMessageBox::Critical);
|
||||
msg.setTextFormat(Qt::RichText);
|
||||
msg.setStandardButtons(QMessageBox::Ok);
|
||||
msg.setText(tr("Booting failed: %1 %2").arg(message).arg(link));
|
||||
msg.exec();
|
||||
QMessageBox* msg = new QMessageBox();
|
||||
msg->setWindowTitle(tr("Boot Failed"));
|
||||
msg->setIcon(QMessageBox::Critical);
|
||||
msg->setTextFormat(Qt::RichText);
|
||||
msg->setStandardButtons(QMessageBox::Ok);
|
||||
msg->setText(tr("Booting failed: %1 %2").arg(message).arg(link));
|
||||
msg->setAttribute(Qt::WA_DeleteOnClose);
|
||||
msg->open();
|
||||
}
|
||||
|
||||
void main_window::Boot(const std::string& path, const std::string& title_id, bool direct, bool refresh_list, cfg_mode config_mode, const std::string& config_path)
|
||||
|
@ -2744,13 +2744,13 @@ void main_window::CreateConnects()
|
|||
|
||||
const auto open_settings = [this](int tabIndex)
|
||||
{
|
||||
settings_dialog dlg(m_gui_settings, m_emu_settings, tabIndex, this);
|
||||
connect(&dlg, &settings_dialog::GuiStylesheetRequest, this, &main_window::RequestGlobalStylesheetChange);
|
||||
connect(&dlg, &settings_dialog::GuiRepaintRequest, this, &main_window::RepaintGui);
|
||||
connect(&dlg, &settings_dialog::EmuSettingsApplied, this, &main_window::NotifyEmuSettingsChange);
|
||||
connect(&dlg, &settings_dialog::EmuSettingsApplied, this, &main_window::update_gui_pad_thread);
|
||||
connect(&dlg, &settings_dialog::EmuSettingsApplied, m_log_frame, &log_frame::LoadSettings);
|
||||
dlg.exec();
|
||||
settings_dialog* dlg = new settings_dialog(m_gui_settings, m_emu_settings, tabIndex, this);
|
||||
connect(dlg, &settings_dialog::GuiStylesheetRequest, this, &main_window::RequestGlobalStylesheetChange);
|
||||
connect(dlg, &settings_dialog::GuiRepaintRequest, this, &main_window::RepaintGui);
|
||||
connect(dlg, &settings_dialog::EmuSettingsApplied, this, &main_window::NotifyEmuSettingsChange);
|
||||
connect(dlg, &settings_dialog::EmuSettingsApplied, this, &main_window::update_gui_pad_thread);
|
||||
connect(dlg, &settings_dialog::EmuSettingsApplied, m_log_frame, &log_frame::LoadSettings);
|
||||
dlg->open();
|
||||
};
|
||||
|
||||
connect(ui->confCPUAct, &QAction::triggered, this, [open_settings]() { open_settings(0); });
|
||||
|
@ -3202,8 +3202,8 @@ void main_window::CreateConnects()
|
|||
|
||||
connect(ui->aboutAct, &QAction::triggered, this, [this]
|
||||
{
|
||||
about_dialog dlg(this);
|
||||
dlg.exec();
|
||||
about_dialog* dlg = new about_dialog(this);
|
||||
dlg->open();
|
||||
});
|
||||
|
||||
connect(ui->aboutQtAct, &QAction::triggered, qApp, &QApplication::aboutQt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue