Move signal/slot connections out of .ui files

This unify the place (.cpp file) where we handle signal/slot connections.
This commit is contained in:
Chocobo1
2023-07-12 05:08:36 +08:00
parent 20f4d0c4e3
commit b17307f283
36 changed files with 115 additions and 768 deletions

View File

@@ -44,6 +44,9 @@ WatchedFolderOptionsDialog::WatchedFolderOptionsDialog(
m_ui->setupUi(this);
m_ui->groupBoxParameters->layout()->addWidget(m_addTorrentParamsWidget);
connect(m_ui->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(m_ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
loadState();
}