Commit 3badd8e0 authored by Laurent Montel's avatar Laurent Montel 😁

Astyle kdelibs

parent d8e16e5c
......@@ -57,7 +57,7 @@ QByteArray ImapResource::clientId() const
{
return "Kontact IMAP Resource";
}
QDialog *ImapResource::createConfigureDialog(WId windowId)
{
SetupServer *dlg = new SetupServer(this, windowId);
......
......@@ -275,7 +275,7 @@ void RetrieveItemsTask::onStatusDone(KJob *job)
return;
}
KIMAP::StatusJob *status = qobject_cast<KIMAP::StatusJob*>(job);
KIMAP::StatusJob *status = qobject_cast<KIMAP::StatusJob *>(job);
QList<QPair<QByteArray, qint64>> results = status->status();
Q_FOREACH (const auto &val, results) {
if (val.first == "UIDNEXT") {
......
......@@ -486,7 +486,7 @@ void SessionPool::onCapabilitiesTestDone(KJob *job)
}
}
void SessionPool::setClientId( const QByteArray &clientId )
void SessionPool::setClientId(const QByteArray &clientId)
{
m_clientId = clientId;
}
......@@ -527,9 +527,9 @@ void SessionPool::onNamespacesTestDone(KJob *job)
}
}
void SessionPool::onIdDone( KJob *job )
void SessionPool::onIdDone(KJob *job)
{
KIMAP::IdJob *idJob = qobject_cast<KIMAP::IdJob*>(job);
KIMAP::IdJob *idJob = qobject_cast<KIMAP::IdJob *>(job);
//Can happen if we disonnected meanwhile
if (!m_connectingPool.contains(idJob->session())) {
emit connectDone(CancelledError, i18n("Disconnected during login."));
......
......@@ -413,7 +413,7 @@ Kolab::FolderType KolabHelpers::folderTypeFromString(const QByteArray &folderTyp
QByteArray KolabHelpers::getFolderTypeAnnotation(const QMap< QByteArray, QByteArray > &annotations)
{
if (annotations.contains("/shared" KOLAB_FOLDER_TYPE_ANNOTATION)
&& !annotations.value("/shared" KOLAB_FOLDER_TYPE_ANNOTATION).isEmpty()) {
&& !annotations.value("/shared" KOLAB_FOLDER_TYPE_ANNOTATION).isEmpty()) {
return annotations.value("/shared" KOLAB_FOLDER_TYPE_ANNOTATION);
} else if (annotations.contains("/private" KOLAB_FOLDER_TYPE_ANNOTATION)
&& !annotations.value("/private" KOLAB_FOLDER_TYPE_ANNOTATION).isEmpty()) {
......@@ -441,7 +441,7 @@ QColor KolabHelpers::getFolderColor(const QMap<QByteArray, QByteArray> &annotati
void KolabHelpers::setFolderColor(QMap<QByteArray, QByteArray> &annotations, const QColor &color)
{
// kolab saves the color without a "#", so we need to delete the prefix "#" if we save it to the annotations
annotations["/shared" KOLAB_COLOR_ANNOTATION] = color.name().toAscii().remove(0,1);
annotations["/shared" KOLAB_COLOR_ANNOTATION] = color.name().toAscii().remove(0, 1);
}
QString KolabHelpers::getIcon(Kolab::FolderType type)
......
......@@ -198,7 +198,7 @@ void KolabResource::collectionChanged(const Akonadi::Collection &collection, con
QSet<QByteArray> p = parts;
//Update annotations if necessary
const Akonadi::Collection col = updateAnnotations(collection);
if(parts.contains(Akonadi::CollectionColorAttribute().type())) {
if (parts.contains(Akonadi::CollectionColorAttribute().type())) {
p << Akonadi::CollectionAnnotationsAttribute().type();
}
......
......@@ -795,7 +795,7 @@ void POP3Resource::deleteJobResult(KJob *job)
}
if (shouldAdvanceToQuitState()) {
advanceState(Quit);
advanceState(Quit);
}
}
......
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