Skip to content
Permalink
Browse files
Replace deprecated provides() with hasFormat()
QDropEvent::provides() has been deprecated from the move from Qt 3 to Qt 4.
Replace this instance with the hasFormat() method on the mimeData instance.
  • Loading branch information
simonsonc committed Mar 29, 2014
1 parent fe39578 commit 3e3f30a304744563b3c0fd92dcfa4809cd472a80
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsbrowserdockwidget.cpp
@@ -76,7 +76,7 @@ class QgsBrowserTreeView : public QTreeView

QTreeView::dragMoveEvent( e );

if ( !e->provides( "application/x-vnd.qgis.qgis.uri" ) )
if ( !e->mimeData()->hasFormat( "application/x-vnd.qgis.qgis.uri" ) )
{
e->ignore();
return;

0 comments on commit 3e3f30a

Please sign in to comment.