From: sln Date: Thu, 7 Jul 2011 09:51:25 +0000 (+0000) Subject: Support of drag-and-drop X-Git-Tag: DIAGRAM_1_0~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe51f11cdb7ab0ec29816ec05bd4fa676ffe4a40;p=modules%2Fgui.git Support of drag-and-drop --- diff --git a/src/SUIT/SUIT_TreeModel.cxx b/src/SUIT/SUIT_TreeModel.cxx index b5ea72803..6974a5ed6 100755 --- a/src/SUIT/SUIT_TreeModel.cxx +++ b/src/SUIT/SUIT_TreeModel.cxx @@ -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; }