Commit 89cda473 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Coding style

parent a72ebcb7
......@@ -465,9 +465,9 @@ protected:
}
}
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE
{
if (role == Qt::CheckStateRole) {
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE {
if (role == Qt::CheckStateRole)
{
if (sourceModel()->hasChildren(mapToSource(index)) && index.data(NodeTypeRole).toInt() == PersonNodeRole) {
setChildren(mapToSource(index), value, role);
}
......@@ -513,7 +513,7 @@ AkonadiCollectionView::AkonadiCollectionView(CalendarView *view, bool hasContext
QLineEdit *searchCol = new QLineEdit(this);
searchCol->setClearButtonEnabled(true);
searchCol->setPlaceholderText(i18nc("@info/plain Displayed grayed-out inside the "
"textbox, verb to search", "Search"));
"textbox, verb to search", "Search"));
topLayout->addWidget(searchCol);
ColorProxyModel *colorProxy = new ColorProxyModel(this);
......
......@@ -46,7 +46,7 @@ NoteEditDialog::NoteEditDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18nc("@title:window", "Create Note"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
......
......@@ -64,7 +64,7 @@ void SearchCollectionHelper::onSearchCollectionsFetched(KJob *job)
qCWarning(KORGANIZER_LOG) << "Search failed: " << job->errorString();
} else {
Akonadi::CollectionFetchJob *fetchJob = static_cast<Akonadi::CollectionFetchJob *>(job);
Q_FOREACH(const Akonadi::Collection & col, fetchJob->collections()) {
Q_FOREACH (const Akonadi::Collection &col, fetchJob->collections()) {
if (col.name() == QStringLiteral("OpenInvitations")) {
mOpenInvitationCollection = col;
} else if (col.name() == QStringLiteral("DeclinedInvitations")) {
......@@ -81,7 +81,7 @@ void SearchCollectionHelper::updateSearchCollection(Akonadi::Collection col, KCa
// Update or create search collections
Akonadi::SearchQuery query(Akonadi::SearchTerm::RelOr);
foreach(const QString email, mIdentityManager.allEmails()) {
foreach (const QString email, mIdentityManager.allEmails()) {
if (!email.isEmpty()) {
query.addTerm(Akonadi::IncidenceSearchTerm(Akonadi::IncidenceSearchTerm::PartStatus, QString(email + QString::number(status))));
}
......
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