Convert to the new signal-slot syntax
This commit is contained in:
parent
55a866dbf3
commit
8e2e9ecbc3
5 changed files with 16 additions and 30 deletions
|
@ -82,18 +82,14 @@ DanbooruConnectWidget::DanbooruConnectWidget(QVector< QUrl > urlList,
|
|||
Wallet::Asynchronous
|
||||
);
|
||||
|
||||
connect(m_wallet, SIGNAL(walletOpened(bool)), this,
|
||||
SLOT(checkWallet(bool)));
|
||||
connect(m_wallet, &KWallet::Wallet::walletOpened, this, &DanbooruConnectWidget::checkWallet);
|
||||
|
||||
connect(danbooruUrlComboBox, SIGNAL(currentIndexChanged(int)), this,
|
||||
SLOT(getWalletData()));
|
||||
connect(danbooruUrlComboBox, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &DanbooruConnectWidget::getWalletData);
|
||||
|
||||
connect(anonCheckBox, SIGNAL(stateChanged(int)), this,
|
||||
SLOT(toggleLineEdits()));
|
||||
connect(anonCheckBox, &QCheckBox::stateChanged, this, &DanbooruConnectWidget::toggleLineEdits);
|
||||
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
|
||||
connect(closeButton, SIGNAL(clicked(bool)), this,
|
||||
SLOT(emitRejected()));
|
||||
connect(buttonBox, &KDialogButtonBox::accepted, this, &DanbooruConnectWidget::accept);
|
||||
connect(closeButton, &KPushButton::clicked, this, &DanbooruConnectWidget::emitRejected);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue