Qt: remove obsolete shortcut
This commit is contained in:
@@ -148,7 +148,6 @@ bool main_window::Init([[maybe_unused]] bool with_cli_boot)
|
|||||||
if (enable_play_last)
|
if (enable_play_last)
|
||||||
{
|
{
|
||||||
ui->sysPauseAct->setText(tr("&Play last played game"));
|
ui->sysPauseAct->setText(tr("&Play last played game"));
|
||||||
ui->sysPauseAct->setShortcut(QKeySequence("Ctrl+R"));
|
|
||||||
ui->sysPauseAct->setIcon(m_icon_play);
|
ui->sysPauseAct->setIcon(m_icon_play);
|
||||||
ui->toolbar_start->setToolTip(start_tooltip);
|
ui->toolbar_start->setToolTip(start_tooltip);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ welcome_dialog::welcome_dialog(std::shared_ptr<gui_settings> gui_settings, bool
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
setWindowFlag(Qt::WindowCloseButtonHint, is_manual_show);
|
setWindowFlag(Qt::WindowCloseButtonHint, is_manual_show);
|
||||||
|
|
||||||
ui->okay->setEnabled(is_manual_show);
|
ui->okay->setEnabled(is_manual_show);
|
||||||
ui->i_have_read->setChecked(is_manual_show);
|
ui->i_have_read->setChecked(is_manual_show);
|
||||||
ui->i_have_read->setEnabled(!is_manual_show);
|
ui->i_have_read->setEnabled(!is_manual_show);
|
||||||
@@ -51,12 +51,12 @@ welcome_dialog::welcome_dialog(std::shared_ptr<gui_settings> gui_settings, bool
|
|||||||
|
|
||||||
if (!is_manual_show)
|
if (!is_manual_show)
|
||||||
{
|
{
|
||||||
connect(ui->i_have_read, &QCheckBox::clicked, [this](bool checked)
|
connect(ui->i_have_read, &QCheckBox::clicked, this, [this](bool checked)
|
||||||
{
|
{
|
||||||
ui->okay->setEnabled(checked);
|
ui->okay->setEnabled(checked);
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(ui->do_not_show, &QCheckBox::clicked, [this](bool checked)
|
connect(ui->do_not_show, &QCheckBox::clicked, this, [this](bool checked)
|
||||||
{
|
{
|
||||||
m_gui_settings->SetValue(gui::ib_show_welcome, QVariant(!checked));
|
m_gui_settings->SetValue(gui::ib_show_welcome, QVariant(!checked));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user