mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Connect numerous QPushButtons to use clicked signal instead of pressed. This unifies UI behaviour more.
This commit is contained in:
@ -116,19 +116,19 @@ void GCMemcardManager::CreateWidgets()
|
||||
void GCMemcardManager::ConnectWidgets()
|
||||
{
|
||||
connect(m_button_box, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
connect(m_select_button, &QPushButton::pressed, this, [this] { SetActiveSlot(!m_active_slot); });
|
||||
connect(m_export_button, &QPushButton::pressed, this, [this] { ExportFiles(true); });
|
||||
connect(m_export_all_button, &QPushButton::pressed, this, &GCMemcardManager::ExportAllFiles);
|
||||
connect(m_delete_button, &QPushButton::pressed, this, &GCMemcardManager::DeleteFiles);
|
||||
connect(m_import_button, &QPushButton::pressed, this, &GCMemcardManager::ImportFile);
|
||||
connect(m_copy_button, &QPushButton::pressed, this, &GCMemcardManager::CopyFiles);
|
||||
connect(m_fix_checksums_button, &QPushButton::pressed, this, &GCMemcardManager::FixChecksums);
|
||||
connect(m_select_button, &QPushButton::clicked, [this] { SetActiveSlot(!m_active_slot); });
|
||||
connect(m_export_button, &QPushButton::clicked, [this] { ExportFiles(true); });
|
||||
connect(m_export_all_button, &QPushButton::clicked, this, &GCMemcardManager::ExportAllFiles);
|
||||
connect(m_delete_button, &QPushButton::clicked, this, &GCMemcardManager::DeleteFiles);
|
||||
connect(m_import_button, &QPushButton::clicked, this, &GCMemcardManager::ImportFile);
|
||||
connect(m_copy_button, &QPushButton::clicked, this, &GCMemcardManager::CopyFiles);
|
||||
connect(m_fix_checksums_button, &QPushButton::clicked, this, &GCMemcardManager::FixChecksums);
|
||||
|
||||
for (int slot = 0; slot < SLOT_COUNT; slot++)
|
||||
{
|
||||
connect(m_slot_file_edit[slot], &QLineEdit::textChanged, this,
|
||||
connect(m_slot_file_edit[slot], &QLineEdit::textChanged,
|
||||
[this, slot](const QString& path) { SetSlotFile(slot, path); });
|
||||
connect(m_slot_file_button[slot], &QPushButton::clicked, this,
|
||||
connect(m_slot_file_button[slot], &QPushButton::clicked,
|
||||
[this, slot] { SetSlotFileInteractive(slot); });
|
||||
connect(m_slot_table[slot], &QTableWidget::itemSelectionChanged, this,
|
||||
&GCMemcardManager::UpdateActions);
|
||||
|
Reference in New Issue
Block a user