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

@@ -76,6 +76,10 @@ AutomatedRssDownloader::AutomatedRssDownloader(QWidget *parent)
#endif
{
m_ui->setupUi(this);
connect(m_ui->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(m_ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
m_ui->torrentParametersGroupBox->layout()->addWidget(m_addTorrentParamsWidget);
m_ui->prioritySpinBox->setMinimum(std::numeric_limits<int>::min());