Commit 9199876c authored by LE BRETON Come's avatar LE BRETON Come

temporary fix.

parent a70b150f
......@@ -39,7 +39,7 @@ public:
virtual void touch(void) = 0;
protected:
void draw(void);
virtual void draw(void);
public:
virtual bool isDecorating(void) = 0;
......
......@@ -280,12 +280,6 @@ bool dtkVisualizationDecoratorVectorStreamlines::setCurrentFieldName(const QStri
}
d_func()->current_field_name = field_name;
if (this->isCurrentFieldUniform()) {
d->show_actor_cb->setChecked(false);
d->show_actor_cb->setEnabled(false);
} else {
d->show_actor_cb->setEnabled(true);
}
using Support = dtkVisualizationDecoratorWithClut::Support;
int support = d_func()->supports[field_name];
......@@ -337,5 +331,18 @@ void dtkVisualizationDecoratorVectorStreamlines::setColorMap(const QMap<double,
// }
}
void dtkVisualizationDecoratorVectorStreamlines::draw(void) {
if (this->isCurrentFieldUniform()) {
d->show_actor_cb->setChecked(false);
d->show_actor_cb->setEnabled(false);
} else {
d->show_actor_cb->setEnabled(true);
}
dtkVisualizationDecorator::draw();
}
//
// dtkVisualizationDecoratorVectorStreamlines.cpp ends here
......@@ -33,6 +33,7 @@ public:
protected:
bool setCurrentFieldName(const QString&) override;
void setColorMap(const QMap<double, QColor>&) override;
void draw(void) override;
public:
void show(void);
......
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