Commit e8ffac96 authored by LACROIX Romain's avatar LACROIX Romain

Coding style: blank space is before *, after &.

parent 4ba7a750
......@@ -321,7 +321,7 @@ dtkVisualizationDecoratorVectorStreamTracer::dtkVisualizationDecoratorVectorStre
d->sp_radius->setObjectName("Tube Radius");
d->sp_resolution->setObjectName("Resolution");
auto* integrator_box = dtkVisualizationWidgetsStreamTracer::createCategory("Integrator", {cb_integrator_direction, cb_integrator_type});
auto *integrator_box = dtkVisualizationWidgetsStreamTracer::createCategory("Integrator", {cb_integrator_direction, cb_integrator_type});
d_func()->inspectors << d->cb_source_type << integrator_box << d->sp_integrator_max_steps
<< d->sp_integrator_max_lengths << d->sp_radius << d->sp_resolution
......
......@@ -20,9 +20,9 @@ dtkVisualizationWidgetsStreamTracer::~dtkVisualizationWidgetsStreamTracer()
// delete d;
}
QComboBox* dtkVisualizationWidgetsStreamTracer::createComboBox(const QString& name, const QVector<QString>& labels, const int index)
QComboBox *dtkVisualizationWidgetsStreamTracer::createComboBox(const QString& name, const QVector<QString>& labels, const int index)
{
QComboBox* box = new QComboBox;
QComboBox *box = new QComboBox;
for (const auto& label: labels)
{
box->addItem(label);
......@@ -32,14 +32,14 @@ QComboBox* dtkVisualizationWidgetsStreamTracer::createComboBox(const QString& na
return box;
}
QGroupBox* dtkVisualizationWidgetsStreamTracer::createCategory(const QString& name, const QVector<QWidget*>& widgets)
QGroupBox *dtkVisualizationWidgetsStreamTracer::createCategory(const QString& name, const QVector<QWidget*>& widgets)
{
auto* layout = new QVBoxLayout;
for (auto* widget: widgets)
auto *layout = new QVBoxLayout;
for (auto *widget: widgets)
{
layout->addWidget(widget);
}
auto* box = new QGroupBox;
auto *box = new QGroupBox;
box->setObjectName(name);
box->setLayout(layout);
return box;
......
......@@ -14,8 +14,8 @@ public:
dtkVisualizationWidgetsStreamTracer(QWidget *parent = nullptr);
~dtkVisualizationWidgetsStreamTracer(void);
static QComboBox* createComboBox(const QString& name, const QVector<QString>& labels, const int index);
static QGroupBox* createCategory(const QString& name, const QVector<QWidget*>& widgets);
static QComboBox *createComboBox(const QString& name, const QVector<QString>& labels, const int index);
static QGroupBox *createCategory(const QString& name, const QVector<QWidget*>& widgets);
/* public slots: */
/* void setValue(double value); */
......
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