Salome HOME
Style changes.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ZLevelsModel.h
index af30f4585e83a6b0713d680fc9d22569c5240a4f..e1585abdd28c3989a90f4b21b8c6ac28b59bef62 100644 (file)
@@ -23,8 +23,8 @@
 #ifndef HYDROGUI_ZLEVELSMODEL_H
 #define HYDROGUI_ZLEVELSMODEL_H
 
+#include <HYDROGUI.h>
 #include <HYDROData_Entity.h>
-
 #include <QAbstractListModel>
 #include <QPixmap>
 
@@ -34,7 +34,7 @@ const int HYDROGUI_VisibleRole = Qt::UserRole + 1;
  * \class HYDROGUI_ZLevelsModel
  * \brief The class representing custom list model for the Z levels
  */
-class HYDROGUI_ZLevelsModel : public QAbstractListModel
+class HYDRO_EXPORT HYDROGUI_ZLevelsModel : public QAbstractListModel
 {
   Q_OBJECT
 
@@ -75,8 +75,11 @@ public:
 
 protected:
   bool isObjectVisible( int theIndex ) const;
+  bool isDragAndDropAllowed( const QList<int>& theItems, const int theDropItem ) const;
 
 private:
+  friend class test_HYDROGUI_ZLevelsModel;
+
   Object2VisibleList myObjects;
   QPixmap myEmpty, myEye;
 };