Salome HOME
Porting on OCCT 7.0 and Qt 5. Make compilable version.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ListModel.h
index 46a8487d3b268e241f2b852be1a377162d2be808..8d19b52f13a29f8706ca7202a5145879444b7703 100644 (file)
@@ -33,8 +33,6 @@ const int HYDROGUI_EntryRole   = Qt::UserRole + 2;
  */
 class HYDRO_EXPORT HYDROGUI_ListModel : public QAbstractListModel
 {
-  Q_OBJECT
-
 public:
   enum OpType { Top, Up, Down, Bottom, DragAndDrop };
 
@@ -59,6 +57,7 @@ public:
   virtual bool dropMimeData( const QMimeData* theData, Qt::DropAction theAction,
                              int theRow, int theColumn, const QModelIndex& theParent );
   virtual Qt::DropActions supportedDropActions() const;
+  virtual Qt::DropActions supportedDragActions() const;
 
   QList<int> getIds( const QModelIndexList& theIndexes, bool theIsToSort = true ) const;
 
@@ -90,4 +89,4 @@ private:
   bool myIsDecorationEnabled;
 };
 
-#endif
\ No newline at end of file
+#endif