Exemplo n.º 1
0
bool QGo4BrowserItem::acceptDrop ( const QMimeSource * mime ) const
{
   if (!dropEnabled()) return false;

   QGo4BrowserListView* br = dynamic_cast<QGo4BrowserListView*> (listView());

   return (br==0) ? false : br->IsAcceptItemDrop(this, mime);
}
Exemplo n.º 2
0
bool QtFileIconViewItem::acceptDrop( const QMimeSource *e ) const
{
    if ( type() == Dir && e->provides( "text/uri-list" ) &&
            dropEnabled() )
        return TRUE;

    return FALSE;
}