Commit 0ff3c0c8 authored by Kitware Robot's avatar Kitware Robot Committed by Ben Boeckel

clang-format: apply updated clang-format settings

parent 2f755229
Pipeline #173827 failed with stages
in 52 minutes and 12 seconds

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
......@@ -9,7 +9,6 @@
//=========================================================================
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/function.hpp>
#include <boost/functional.hpp>
#include <boost/mpl/placeholders.hpp>
......
......@@ -50,8 +50,9 @@ protected:
QVariant data(const QModelIndex& index_, int role = Qt::DisplayRole) const override;
bool setData(const QModelIndex& index_, const QVariant& value, int role) override;
QVariant headerData(
int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
QVariant headerData(int section,
Qt::Orientation orientation,
int role = Qt::DisplayRole) const override;
Qt::ItemFlags flags(const QModelIndex& index_) const override;
......
......@@ -50,8 +50,8 @@ void AttDefDataModel::populate(smtk::attribute::ResourcePtr resource)
}
// -----------------------------------------------------------------------------
void AttDefDataModel::appendRecursively(
smtk::attribute::DefinitionPtr parentDef, QTreeWidgetItem* parentItem)
void AttDefDataModel::appendRecursively(smtk::attribute::DefinitionPtr parentDef,
QTreeWidgetItem* parentItem)
{
DefinitionPtrVec defsConcrete;
this->Resource->derivedDefinitions(parentDef, defsConcrete);
......@@ -133,8 +133,8 @@ void AttDefDataModel::remove(const QModelIndex& attDefIndex)
}
// -----------------------------------------------------------------------------
QModelIndex AttDefDataModel::findElementByData(
QTreeWidgetItem* parent, const smtk::attribute::DefinitionPtr& dataMatch)
QModelIndex AttDefDataModel::findElementByData(QTreeWidgetItem* parent,
const smtk::attribute::DefinitionPtr& dataMatch)
{
const int count = parent->childCount();
for (int i = 0; i < count; i++)
......
......@@ -83,8 +83,8 @@ protected:
* referencing the dataMatch. This method is used when inserting a
* new smtk::attribute::Definition (to update the model).
*/
QModelIndex findElementByData(
QTreeWidgetItem* element, const smtk::attribute::DefinitionPtr& dataMatch);
QModelIndex findElementByData(QTreeWidgetItem* element,
const smtk::attribute::DefinitionPtr& dataMatch);
private:
AttDefDataModel(const AttDefDataModel&) = delete;
......
......@@ -33,14 +33,22 @@ AttDefInformation::AttDefInformation(QWidget* parent)
connect(this->Ui->pbAddItemDef, SIGNAL(clicked()), this, SLOT(onAddItemDef()));
connect(this->Ui->pbDeleteItemDef, SIGNAL(clicked()), this, SLOT(onRemoveItemDef()));
connect(this->Ui->tvInheritedItems, SIGNAL(doubleClicked(const QModelIndex&)), this,
connect(this->Ui->tvInheritedItems,
SIGNAL(doubleClicked(const QModelIndex&)),
this,
SLOT(showInheritedItemDetails(const QModelIndex&)));
connect(this->Ui->tvInheritedItems, SIGNAL(showDialog(const QModelIndex&)), this,
connect(this->Ui->tvInheritedItems,
SIGNAL(showDialog(const QModelIndex&)),
this,
SLOT(showInheritedItemDetails(const QModelIndex&)));
connect(this->Ui->tvOwnedItems, SIGNAL(doubleClicked(const QModelIndex&)), this,
connect(this->Ui->tvOwnedItems,
SIGNAL(doubleClicked(const QModelIndex&)),
this,
SLOT(showOwnedItemDetails(const QModelIndex&)));
connect(this->Ui->tvOwnedItems, SIGNAL(showDialog(const QModelIndex&)), this,
connect(this->Ui->tvOwnedItems,
SIGNAL(showDialog(const QModelIndex&)),
this,
SLOT(showOwnedItemDetails(const QModelIndex&)));
this->Ui->tvInheritedItems->setExpandsOnDoubleClick(false);
......@@ -51,8 +59,8 @@ AttDefInformation::AttDefInformation(QWidget* parent)
AttDefInformation::~AttDefInformation() = default;
// -----------------------------------------------------------------------------
void AttDefInformation::onAttDefChanged(
const QModelIndex& currentDef, const QModelIndex& previousDef)
void AttDefInformation::onAttDefChanged(const QModelIndex& currentDef,
const QModelIndex& previousDef)
{
Q_UNUSED(previousDef);
this->updateAttDefData(currentDef);
......
......@@ -22,12 +22,16 @@ AttributeBrowser::AttributeBrowser(QWidget* parent)
this->Ui->setupUi(this);
connect(this->Ui->pbAddDefinition, SIGNAL(clicked()), this, SLOT(onAddDefinition()));
connect(this->Ui->viewDefinitions, SIGNAL(showDialog(const QModelIndex&)), this,
connect(this->Ui->viewDefinitions,
SIGNAL(showDialog(const QModelIndex&)),
this,
SLOT(onAddDefinition()));
connect(this->Ui->pbDelDefinition, SIGNAL(clicked()), this, SLOT(onDeleteDefinition()));
connect(this->Ui->leSearch, SIGNAL(textChanged(const QString&)), this,
connect(this->Ui->leSearch,
SIGNAL(textChanged(const QString&)),
this,
SLOT(onSearchAttDef(const QString&)));
}
......@@ -44,9 +48,7 @@ void AttributeBrowser::populate(smtk::attribute::ResourcePtr resource)
}
//------------------------------------------------------------------------------
void AttributeBrowser::clear()
{
}
void AttributeBrowser::clear() {}
//------------------------------------------------------------------------------
void AttributeBrowser::populateDefinitions(smtk::attribute::ResourcePtr resource)
......@@ -60,7 +62,9 @@ void AttributeBrowser::populateDefinitions(smtk::attribute::ResourcePtr resource
QItemSelectionModel* sm = this->Ui->viewDefinitions->selectionModel();
connect(sm, SIGNAL(currentChanged(const QModelIndex&, const QModelIndex&)), this,
connect(sm,
SIGNAL(currentChanged(const QModelIndex&, const QModelIndex&)),
this,
SLOT(onAttDefSelectionChanged(const QModelIndex&, const QModelIndex&)));
const QModelIndex defaultIndex = this->AttDefModel->getDefaultIndex();
......@@ -68,8 +72,8 @@ void AttributeBrowser::populateDefinitions(smtk::attribute::ResourcePtr resource
}
//------------------------------------------------------------------------------
void AttributeBrowser::onAttDefSelectionChanged(
const QModelIndex& current, const QModelIndex& previous)
void AttributeBrowser::onAttDefSelectionChanged(const QModelIndex& current,
const QModelIndex& previous)
{
// Disable deletion if other definitions derive from current
this->Ui->pbDelDefinition->setEnabled(!this->AttDefModel->hasDerivedTypes(current));
......
......@@ -21,7 +21,7 @@
* ///TODO Implement the rest of the virtual interface of QTreeWidgetItem
* to customize how data is set and queried from.
*/
template <typename T>
template<typename T>
class DataModelElement : public QTreeWidgetItem
{
public:
......@@ -46,17 +46,17 @@ private:
T m_data;
};
template <typename T>
template<typename T>
DataModelElement<T>::DataModelElement(QTreeWidgetItem* parent)
: QTreeWidgetItem(parent){};
template <typename T>
template<typename T>
void DataModelElement<T>::setReferencedData(const T& data)
{
m_data = data;
};
template <typename T>
template<typename T>
const T& DataModelElement<T>::getReferencedDataConst() const
{
return m_data;
......
......@@ -24,7 +24,9 @@ HandlerGroup::~HandlerGroup() = default;
bool HandlerGroup::initialize_impl(QWidget* parent)
{
this->Ui->setupUi(parent);
QObject::connect(this->Ui->cbCommonLabel, SIGNAL(toggled(bool)), this->Ui->leCommonLabel,
QObject::connect(this->Ui->cbCommonLabel,
SIGNAL(toggled(bool)),
this->Ui->leCommonLabel,
SLOT(setEnabled(bool)));
if (this->ItemDef)
......