X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FParaViewPlugin%2FVectBoolWidget.cxx;h=5af5d9f86d762bfade56890a9a58208979cacb71;hb=809b32e8e5c5d2e9f015797d91eff00241bb5323;hp=00f94e490ef5060847d28537353867816c386fc6;hpb=4b015556d5938cc157ae97bdc018d08367c0729a;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/ParaViewPlugin/VectBoolWidget.cxx b/src/Plugins/MEDReader/ParaViewPlugin/VectBoolWidget.cxx index 00f94e49..5af5d9f8 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/VectBoolWidget.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/VectBoolWidget.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF R&D +// Copyright (C) 2010-2015 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -62,7 +62,8 @@ bool VectBoolItem::isActivated() const void VectBoolItem::activated(bool val) { - //_model->setStatusAt(_pos,val); + _model->setStatusAt(_pos,val); + _old_status=val; } void VectBoolItem::theModelHasChanged() @@ -149,11 +150,11 @@ VectBoolWidget::VectBoolWidget(QWidget *parent, int nbOfItems):QFrame(parent) _vbm->selectUnselectAll(); _nb_of_rows_selecter->setValue(_nb_of_rows_selecter->maximum()); // - _items.resize(nbOfItems); for(int i=0;igetNumberOfBoolItems()) { std::cerr << "ERROR ! Internal Error in VectBoolWidget::setItems ! Current number of items is bigger than the current one !" << std::endl; + std::cerr << curNbOfItems << " "<setCurrentItems(dts,its,tts))