X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FParaViewPlugin%2FVectBoolWidget.cxx;h=5af5d9f86d762bfade56890a9a58208979cacb71;hb=4cde1a359421d29a442b21c452e7b89bba8f96b7;hp=c9e976c5b1e64cfbd66f4293dd8a534ce3221f76;hpb=e4350e9cdbb25c86c1b7caa25182a8c99381ead9;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/ParaViewPlugin/VectBoolWidget.cxx b/src/Plugins/MEDReader/ParaViewPlugin/VectBoolWidget.cxx index c9e976c5..5af5d9f8 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/VectBoolWidget.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/VectBoolWidget.cxx @@ -1,9 +1,9 @@ -// 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 // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -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))