mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user