X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FParaViewPlugin%2FVectBoolSpreadSheet.cxx;h=286fe5dc9cff124c6c38ea0c2a90b4d21e56b6f3;hb=4cde1a359421d29a442b21c452e7b89bba8f96b7;hp=2e29fce922cf42171d96cbd1782e68d2befa5bfc;hpb=216b73d56a11d0b5f0ef26acfd85936f92c5f8ac;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/ParaViewPlugin/VectBoolSpreadSheet.cxx b/src/Plugins/MEDReader/ParaViewPlugin/VectBoolSpreadSheet.cxx index 2e29fce9..286fe5dc 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/VectBoolSpreadSheet.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/VectBoolSpreadSheet.cxx @@ -217,8 +217,13 @@ void VectBoolSpreadSheet::init() this->verticalHeader()->setMinimumSectionSize(2); this->verticalHeader()->setDefaultSectionSize(2); this->setItemDelegate(_delegate); +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) this->verticalHeader()->setResizeMode(QHeaderView::ResizeToContents); this->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents); +#else + this->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); + this->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); +#endif this->resizeColumnsToContents(); this->resizeRowsToContents(); //this->verticalHeader()->hide(); @@ -233,6 +238,7 @@ void VectBoolSpreadSheet::selectionChanged(const QItemSelection & selected, cons m->setData(ind,QVariant(true),Qt::UserRole); } QTableView::selectionChanged(selected,deselected); + this->clearSelection(); } void VectBoolSpreadSheet::nbOfRowsHasChanged(int newNbOfRows)