]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Support of drag-and-drop
authorsln <sln@opencascade.com>
Thu, 7 Jul 2011 09:51:25 +0000 (09:51 +0000)
committersln <sln@opencascade.com>
Thu, 7 Jul 2011 09:51:25 +0000 (09:51 +0000)
src/SUIT/SUIT_TreeModel.cxx

index b5ea72803cb61acd27d0674a9a576b0960bbfc35..6974a5ed6c3e3d4cda54b7bdd053a5f2c701bf4c 100755 (executable)
@@ -828,9 +828,8 @@ Qt::ItemFlags SUIT_TreeModel::flags( const QModelIndex& index ) const
     if ( obj->isCheckable( index.column() ) )
       f = f | Qt::ItemIsUserCheckable;
 
-    // sln: is moveable
-    if ( obj->isDragable() )
-      f = f | Qt::ItemIsDragEnabled;
+    if ( index.isValid() )
+      f = Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled | f;
   }
   return f;
 }