Commit 7d94f9a5 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Clean the state list

parent 3b69d7a4
......@@ -32,11 +32,10 @@ struct stats{
class Statistic{
private :
map<const EntityValue*, stats*> _states;
map<const Container*, int > _link;
map<const Container*, int > _link;
int _number_link;
int _event;
public :
/*!
......
......@@ -74,8 +74,14 @@ void Stats_window::set_trace(Trace *trace) {
const list<StateType *> *states_types_list;
list<StateType *>::const_iterator it;
list<StateType *>::const_iterator end;
// Initialize _trace
_trace = trace;
// Clean the list
_kind_of_state_box->clear();
// Fill in the combobox
states_types_list = _trace->get_state_types();
end = states_types_list->end();
for (it = states_types_list->begin();
......@@ -85,7 +91,6 @@ void Stats_window::set_trace(Trace *trace) {
QString temp(QString::fromStdString(name));
_kind_of_state_box->addItem(temp);
}
}
......@@ -96,7 +101,7 @@ void Stats_window::init_window() {
// We init the times
_start_time = Info::Render::_x_min_visible;
_end_time = Info::Render::_x_max_visible;
_end_time = Info::Render::_x_max_visible;
QString temp;
temp.setNum(_start_time);
......
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