X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSalomeApp%2FSalomeApp_ListView.cxx;h=a2f0984c50218b79b794582ddfe1d21bb653b0a7;hb=d0b0c10e5649e0338079df4a53cf95044792d989;hp=e686273c83f911c1b4d6d784d2693ce0a7cd575c;hpb=2d7d8d3dcda4ddfe19af04c5d428f2bb06f7ca80;p=modules%2Fgui.git diff --git a/src/SalomeApp/SalomeApp_ListView.cxx b/src/SalomeApp/SalomeApp_ListView.cxx index e686273c8..a2f0984c5 100644 --- a/src/SalomeApp/SalomeApp_ListView.cxx +++ b/src/SalomeApp/SalomeApp_ListView.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -84,11 +84,7 @@ SalomeApp_ListView::SalomeApp_ListView( QWidget* parent ) setRootIsDecorated(false); setAllColumnsShowFocus(false); // header()->setClickEnabled(false); -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) - header()->setMovable(false); -#else header()->setSectionsMovable(false); -#endif myEditedItem = 0; myEdit = 0; @@ -984,7 +980,7 @@ void SalomeApp_ComboBox::insertItem(const QString& theValue, */ void SalomeApp_ComboBox::insertList(const QStringList& theList) { - for (unsigned i = 0; i < theList.count(); i++) + for (int i = 0; i < theList.count(); i++) insertItem(theList[i]); } @@ -1247,7 +1243,7 @@ void SalomeApp_EntityEdit::insertList(const TColStd_ListOfInteger& theList, TColStd_ListIteratorOfListOfInteger aIter(theList); for (unsigned i = 0; aIter.More(); aIter.Next(), i++) { - if (theCurrent == i) { + if (theCurrent == (int)i) { //!< TODO: mismatch signed/unsigned setText(QString::number(aIter.Value())); break; } @@ -1278,7 +1274,7 @@ void SalomeApp_EntityEdit::insertList(const TColStd_ListOfReal& theList, TColStd_ListIteratorOfListOfReal aIter(theList); for (unsigned i = 0; aIter.More(); aIter.Next(), i++) { - if (theCurrent == i) { + if (theCurrent == (int)i) { //!< TODO: mismatch signed/unsigned setText(QString::number(aIter.Value())); break; }