Commit 2dffe438 authored by Laurent Montel's avatar Laurent Montel 😁

Normalize signal/slot

parent b4ebf853
......@@ -107,12 +107,12 @@ void TransportMgr::sendBtnClicked()
job->setCc(mCcEdit->text().isEmpty() ? QStringList() : mCcEdit->text().split(QLatin1Char(',')));
job->setBcc(mBccEdit->text().isEmpty() ? QStringList() : mBccEdit->text().split(QLatin1Char(',')));
job->setData(mMailEdit->document()->toPlainText().toLatin1());
connect(job, SIGNAL(result(KJob *)),
SLOT(jobResult(KJob *)));
connect(job, SIGNAL(percent(KJob *,ulong)),
SLOT(jobPercent(KJob *,ulong)));
connect(job, SIGNAL(infoMessage(KJob *,QString,QString)),
SLOT(jobInfoMessage(KJob *,QString,QString)));
connect(job, SIGNAL(result(KJob*)),
SLOT(jobResult(KJob*)));
connect(job, SIGNAL(percent(KJob*,ulong)),
SLOT(jobPercent(KJob*,ulong)));
connect(job, SIGNAL(infoMessage(KJob*,QString,QString)),
SLOT(jobInfoMessage(KJob*,QString,QString)));
mCurrentJob = job;
TransportManager::self()->schedule(job);
}
......
......@@ -228,7 +228,7 @@ void TransportManager::addTransport(Transport *transport)
void TransportManager::schedule(TransportJob *job)
{
connect(job, SIGNAL(result(KJob *)), SLOT(jobResult(KJob *)));
connect(job, SIGNAL(result(KJob*)), SLOT(jobResult(KJob*)));
// check if the job is waiting for the wallet
if (!job->transport()->isComplete()) {
......
......@@ -139,11 +139,11 @@ AddTransportDialogNG::AddTransportDialogNG(QWidget *parent)
d->ui.typeListView->setFocus();
// Connect user input.
connect(d->ui.typeListView, SIGNAL(itemClicked(QTreeWidgetItem *,int)),
connect(d->ui.typeListView, SIGNAL(itemClicked(QTreeWidgetItem*,int)),
this, SLOT(updateOkButton()));
connect(d->ui.typeListView, SIGNAL(itemSelectionChanged()),
this, SLOT(updateOkButton()));
connect(d->ui.typeListView, SIGNAL(itemDoubleClicked(QTreeWidgetItem *,int)),
connect(d->ui.typeListView, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),
this, SLOT(doubleClicked()));
connect(d->ui.name, SIGNAL(textChanged(QString)),
this, SLOT(updateOkButton()));
......
......@@ -62,9 +62,9 @@ TransportManagementWidget::TransportManagementWidget(QWidget *parent)
d->updateButtonState();
d->ui.transportList->setContextMenuPolicy(Qt::CustomContextMenu);
connect(d->ui.transportList, SIGNAL(currentItemChanged(QTreeWidgetItem *,QTreeWidgetItem *)),
connect(d->ui.transportList, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),
SLOT(updateButtonState()));
connect(d->ui.transportList, SIGNAL(itemDoubleClicked(QTreeWidgetItem *,int)),
connect(d->ui.transportList, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),
SLOT(editClicked()));
connect(d->ui.addButton, SIGNAL(clicked()), SLOT(addClicked()));
connect(d->ui.editButton, SIGNAL(clicked()), SLOT(editClicked()));
......
......@@ -67,7 +67,7 @@ void MessageQueueJobTest::initTestCase()
// check that outbox is empty
SpecialMailCollectionsRequestJob *rjob = new SpecialMailCollectionsRequestJob(this);
rjob->requestDefaultCollection(SpecialMailCollections::Outbox);
QSignalSpy spy(rjob, SIGNAL(result(KJob *)));
QSignalSpy spy(rjob, SIGNAL(result(KJob*)));
QVERIFY(spy.wait(10000));
verifyOutboxContents(0);
}
......
......@@ -127,7 +127,7 @@ void FilterActionJob::doStart()
Q_ASSERT(d->functor);
d->fetchScope = d->functor->fetchScope();
fjob->setFetchScope(d->fetchScope);
connect(fjob, SIGNAL(result(KJob *)), this, SLOT(fetchResult(KJob *)));
connect(fjob, SIGNAL(result(KJob*)), this, SLOT(fetchResult(KJob*)));
} else {
d->traverseItems();
}
......
......@@ -205,7 +205,7 @@ void MessageQueueJob::start()
{
SpecialMailCollectionsRequestJob *rjob = new SpecialMailCollectionsRequestJob(this);
rjob->requestDefaultCollection(SpecialMailCollections::Outbox);
connect(rjob, SIGNAL(result(KJob *)), this, SLOT(outboxRequestResult(KJob *)));
connect(rjob, SIGNAL(result(KJob*)), this, SLOT(outboxRequestResult(KJob*)));
rjob->start();
}
......
......@@ -142,12 +142,12 @@ MessageQueueJob *MessageQueuer::createQueueJob()
job->addressAttribute().setBcc(mBccEdit->text().isEmpty()
? QStringList() : mBccEdit->text().split(QLatin1Char(',')));
connect(job, SIGNAL(result(KJob *)),
SLOT(jobResult(KJob *)));
connect(job, SIGNAL(percent(KJob *,ulong)),
SLOT(jobPercent(KJob *,ulong)));
connect(job, SIGNAL(infoMessage(KJob *,QString,QString)),
SLOT(jobInfoMessage(KJob *,QString,QString)));
connect(job, SIGNAL(result(KJob*)),
SLOT(jobResult(KJob*)));
connect(job, SIGNAL(percent(KJob*,ulong)),
SLOT(jobPercent(KJob*,ulong)));
connect(job, SIGNAL(infoMessage(KJob*,QString,QString)),
SLOT(jobInfoMessage(KJob*,QString,QString)));
return job;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment