GIT_SILENT: coding style

wilder
Laurent Montel 7 years ago
parent a015c03851
commit e8ccf096c5
  1. 1
      src/folder/favoritecollectionorderproxymodel.h
  2. 4
      src/folder/foldertreewidgetproxymodel.cpp
  3. 4
      src/snippets/snippetsmanager.cpp
  4. 2
      src/snippets/snippetsmodel.cpp
  5. 1
      src/snippets/snippetsmodel.h

@ -36,7 +36,6 @@ public:
protected: protected:
Akonadi::Collection parentCollection(const QModelIndex &index) const override; Akonadi::Collection parentCollection(const QModelIndex &index) const override;
}; };
} }

@ -54,8 +54,8 @@ public:
const QModelIndex firstIndex = q->mapToSource(index.model()->index(row, 0, index)); const QModelIndex firstIndex = q->mapToSource(index.model()->index(row, 0, index));
const Akonadi::Collection collectionFirst const Akonadi::Collection collectionFirst
= q->sourceModel()->data( = q->sourceModel()->data(
firstIndex, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>(); firstIndex, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
if (collectionFirst.isValid() && collectionFirst.hasAttribute<Akonadi::CollectionQuotaAttribute>()) { if (collectionFirst.isValid() && collectionFirst.hasAttribute<Akonadi::CollectionQuotaAttribute>()) {
const Akonadi::CollectionQuotaAttribute *quota = collectionFirst.attribute<Akonadi::CollectionQuotaAttribute>(); const Akonadi::CollectionQuotaAttribute *quota = collectionFirst.attribute<Akonadi::CollectionQuotaAttribute>();

@ -459,8 +459,6 @@ QString SnippetsManager::Private::replaceVariables(const QString &text)
return result; return result;
} }
void SnippetsManager::Private::save() void SnippetsManager::Private::save()
{ {
if (!mDirty) { if (!mDirty) {
@ -476,7 +474,7 @@ SnippetsManager::SnippetsManager(KActionCollection *actionCollection, QObject *p
, d(new Private(this, widget)) , d(new Private(this, widget))
{ {
d->mModel = SnippetsModel::instance(); d->mModel = SnippetsModel::instance();
connect(d->mModel, &SnippetsModel::updateActionCollection, this, [this] (const QString &oldName, const QString &newName, const QKeySequence &keySequence, const QString &text) { connect(d->mModel, &SnippetsModel::updateActionCollection, this, [this](const QString &oldName, const QString &newName, const QKeySequence &keySequence, const QString &text) {
d->updateActionCollection(oldName, newName, keySequence, text); d->updateActionCollection(oldName, newName, keySequence, text);
}); });
d->mSelectionModel = new QItemSelectionModel(d->mModel); d->mSelectionModel = new QItemSelectionModel(d->mModel);

@ -490,7 +490,6 @@ void SnippetsModel::load()
mSavedVariables.insert(variableKey, variableValue); mSavedVariables.insert(variableKey, variableValue);
} }
} }
void SnippetsModel::createSnippet(const QModelIndex &groupIndex, const QString &snippetName, const QString &snippetText, const QString &snippetKeySequence) void SnippetsModel::createSnippet(const QModelIndex &groupIndex, const QString &snippetName, const QString &snippetText, const QString &snippetKeySequence)
@ -605,5 +604,4 @@ void SnippetsModel::save()
} }
} }
config->sync(); config->sync();
} }

@ -33,7 +33,6 @@ struct SnippetsInfo
QString text; QString text;
}; };
class SnippetsModel : public QAbstractItemModel class SnippetsModel : public QAbstractItemModel
{ {
Q_OBJECT Q_OBJECT

Loading…
Cancel
Save