Commit acf1b2e1 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud

Beautifying and slight modification for range.

parent 1608d0f2
......@@ -3,11 +3,12 @@
#include "dtkVisualizationDecoratorVectorStreamTracer.h"
#include "dtkVisualizationWidgetsCategory.h"
#include "dtkVisualizationDecoratorWithClut_p.h"
#include "dtkVisualizationMetaType.h"
#include "dtkVisualizationView2D.h"
#include <dtkVisualizationWidgetsCategory.h>
#include <dtkLog>
#include <QtGui>
......
......@@ -359,9 +359,10 @@ dtkVisualizationDecoratorWithClut::dtkVisualizationDecoratorWithClut(void): dtkV
});
connect(d->field_components, QOverload<int>::of(&QComboBox::currentIndexChanged), [=] (int component_id)
{
if (d->current_field_component != component_id) {
d->original_range = false;
}
//
// if (d->current_field_component != component_id) {
// d->original_range = false;
// }
d->current_field_component = component_id;
this->saveSettings("field_component", component_id);
this->saveSettings("original_range", d->original_range);
......@@ -455,6 +456,10 @@ void dtkVisualizationDecoratorWithClut::restoreSettings(void)
if (d->default_visibility) {
d->scalar_bar->SetVisibility(d->default_show_scalar_bar);
}
d->show_actor_cb->blockSignals(true);
d->show_actor_cb->setChecked(d_func()->default_visibility);
d->show_actor_cb->blockSignals(false);
}
QString dtkVisualizationDecoratorWithClut::fieldName(void) const
......
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