def dropEvent(self, event):
     #print 'in dropEvent', event
     qlist = QStringList()
     if QUriDrag.decodeToUnicodeUris(event, qlist):
         if len(qlist) == 1:
             url = qlist[0]
             dlg = ImportGameUrlDialog(self)
             dlg.url_entry.setText(url)
             dlg.show()
 def dragEnterEvent(self, event):
     #print 'in dragEnterEvent', event
     event.accept(QUriDrag.canDecode(event))
Ejemplo n.º 3
0
 def _handle_drop_event(self, event):
     qlist = QStringList()
     if QUriDrag.decodeToUnicodeUris(event, qlist):
         return qlist
Ejemplo n.º 4
0
 def dragEnterEvent(self, event):
     event.accept(QUriDrag.canDecode(event))