1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-25 14:04:23 +00:00

Add context parameter in connect()

This commit is contained in:
Chocobo1 2018-03-09 01:22:29 +08:00
parent ffb5c0635e
commit a3d9e457a0
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
3 changed files with 3 additions and 3 deletions

View File

@ -190,7 +190,7 @@ FileSystemPathEdit::FileSystemPathEdit(Private::FileEditorWithCompletion *editor
layout->addWidget(editor->widget()); layout->addWidget(editor->widget());
layout->addWidget(d->m_browseBtn); layout->addWidget(d->m_browseBtn);
connect(d->m_browseAction, &QAction::triggered, [this]() {this->d_func()->browseActionTriggered();}); connect(d->m_browseAction, &QAction::triggered, this, [this]() { this->d_func()->browseActionTriggered(); });
} }
FileSystemPathEdit::~FileSystemPathEdit() = default; FileSystemPathEdit::~FileSystemPathEdit() = default;

View File

@ -392,7 +392,7 @@ OptionsDialog::OptionsDialog(QWidget *parent)
connect(m_ui->textSmartEpisodeFilters, &QPlainTextEdit::textChanged, this, &OptionsDialog::enableApplyButton); connect(m_ui->textSmartEpisodeFilters, &QPlainTextEdit::textChanged, this, &OptionsDialog::enableApplyButton);
connect(m_ui->spinRSSRefreshInterval, qSpinBoxValueChanged, this, &OptionsDialog::enableApplyButton); connect(m_ui->spinRSSRefreshInterval, qSpinBoxValueChanged, this, &OptionsDialog::enableApplyButton);
connect(m_ui->spinRSSMaxArticlesPerFeed, qSpinBoxValueChanged, this, &OptionsDialog::enableApplyButton); connect(m_ui->spinRSSMaxArticlesPerFeed, qSpinBoxValueChanged, this, &OptionsDialog::enableApplyButton);
connect(m_ui->btnEditRules, &QPushButton::clicked, [this]() { AutomatedRssDownloader(this).exec(); }); connect(m_ui->btnEditRules, &QPushButton::clicked, this, [this]() { AutomatedRssDownloader(this).exec(); });
// Disable apply Button // Disable apply Button
applyButton->setEnabled(false); applyButton->setEnabled(false);

View File

@ -132,7 +132,7 @@ namespace
, m_sizeHint(QCheckBox(m_text).sizeHint()) , m_sizeHint(QCheckBox(m_text).sizeHint())
{ {
m_checkBox->setCheckState(initialState); m_checkBox->setCheckState(initialState);
connect(m_checkBox, &QCheckBox::stateChanged, [this, onToggle](int newState) connect(m_checkBox, &QCheckBox::stateChanged, this, [this, onToggle](int newState)
{ {
m_checkBox->setTristate(false); m_checkBox->setTristate(false);
onToggle(static_cast<Qt::CheckState>(newState)); onToggle(static_cast<Qt::CheckState>(newState));