Salome HOME
Switch development flag to 1
[modules/paravis.git] / src / Plugins / MEDReader / ParaViewPlugin / VectBoolWidget.h
index 74b8a47c63966935ddc647aa21ab8ac7eed0cd1b..073018d12771af19e4777d16bc056425902d1905 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2010-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2010-2016  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
@@ -23,6 +23,7 @@
 
 #include <QFrame>
 #include <QLabel>
+#include <QMap>
 
 class QSlider;
 class QGroupBox;
@@ -71,11 +72,11 @@ public:
   ~VectBoolWidget();
   int getNumberOfBoolItems() const;
   void setItems(const QStringList& dts, const QStringList& its, const QStringList& tts);
-  const QVector<VectBoolItem *>& getItems() const { return _items; }
+  const QMap<QString, VectBoolItem *>& getItems() const { return _items; }
 private:
   static int GetMaxTickValueOfSlider(int val);
 private:
-  QVector<VectBoolItem *> _items;
+  QMap<QString, VectBoolItem *> _items;
   QHBoxLayout *_horizontal_layout;
   QFrame *_spreadsheet_container;
   QGridLayout *_grid_layout;