Skip to content

Commit

Permalink
Replace deprecated provides() with hasFormat()
Browse files Browse the repository at this point in the history
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 3e3f30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsbrowserdockwidget.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 3e3f30a

Please sign in to comment.