コード例 #1
0
 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()
コード例 #2
0
 def _handle_drop_event(self, event):
     qlist = QStringList()
     if QUriDrag.decodeToUnicodeUris(event, qlist):
         return qlist