Format code using clang-format

This commit is contained in:
Luis Ángel San Martín
2019-05-30 19:46:37 +02:00
parent e0eb94e3ae
commit e3ec56aa43
356 changed files with 19824 additions and 21874 deletions

View File

@ -1,7 +1,7 @@
#include "actions_groups_model.h"
ActionsGroupsModel::ActionsGroupsModel(QObject *parent) :
QAbstractItemModel(parent)
ActionsGroupsModel::ActionsGroupsModel(QObject *parent)
: QAbstractItemModel(parent)
{
}
@ -50,14 +50,14 @@ QModelIndex ActionsGroupsModel::parent(const QModelIndex &index) const
void ActionsGroupsModel::addActionsGroup(const ActionsGroup &group)
{
beginInsertRows(QModelIndex(),groups.length(),groups.length());
beginInsertRows(QModelIndex(), groups.length(), groups.length());
groups.push_back(group);
endInsertRows();
}
QList<QAction *> ActionsGroupsModel::getActions(const QModelIndex &mi)
{
if(mi.isValid())
if (mi.isValid())
return groups[mi.row()].getActions();
return QList<QAction *>();
}
@ -65,9 +65,8 @@ QList<QAction *> ActionsGroupsModel::getActions(const QModelIndex &mi)
//-------------------------------------------------------------------
ActionsGroup::ActionsGroup(const QString &name, const QIcon &icon, QList<QAction *> &actions)
:name(name), icon(icon), actions(actions)
: name(name), icon(icon), actions(actions)
{
}
QString ActionsGroup::getName() const