Salome HOME
projects
/
modules
/
paravis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Suppress compiler warning.
[modules/paravis.git]
/
src
/
Plugins
/
MEDReader
/
ParaViewPlugin
/
VectBoolSpreadSheet.cxx
diff --git
a/src/Plugins/MEDReader/ParaViewPlugin/VectBoolSpreadSheet.cxx
b/src/Plugins/MEDReader/ParaViewPlugin/VectBoolSpreadSheet.cxx
index 27b61cac0cf2f98e319993f9f48dad5eeebed1d9..286fe5dc9cff124c6c38ea0c2a90b4d21e56b6f3 100644
(file)
--- a/
src/Plugins/MEDReader/ParaViewPlugin/VectBoolSpreadSheet.cxx
+++ b/
src/Plugins/MEDReader/ParaViewPlugin/VectBoolSpreadSheet.cxx
@@
-1,9
+1,9
@@
-// Copyright (C) 2010-201
4
CEA/DEN, EDF R&D
+// Copyright (C) 2010-201
5
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
//
// 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
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-217,8
+217,13
@@
void VectBoolSpreadSheet::init()
this->verticalHeader()->setMinimumSectionSize(2);
this->verticalHeader()->setDefaultSectionSize(2);
this->setItemDelegate(_delegate);
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);
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();
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);
m->setData(ind,QVariant(true),Qt::UserRole);
}
QTableView::selectionChanged(selected,deselected);
+ this->clearSelection();
}
void VectBoolSpreadSheet::nbOfRowsHasChanged(int newNbOfRows)
}
void VectBoolSpreadSheet::nbOfRowsHasChanged(int newNbOfRows)