[Pyamp-cvs] pyamp/src playlist.py,1.6,1.7
Status: Alpha
Brought to you by:
sayap
From: <sa...@us...> - 2003-10-03 08:29:50
|
Update of /cvsroot/pyamp/pyamp/src In directory sc8-pr-cvs1:/tmp/cvs-serv20057/src Modified Files: playlist.py Log Message: added text drag-n-drop support Index: playlist.py =================================================================== RCS file: /cvsroot/pyamp/pyamp/src/playlist.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** playlist.py 29 Sep 2003 03:34:04 -0000 1.6 --- playlist.py 3 Oct 2003 08:29:46 -0000 1.7 *************** *** 136,143 **** def songDropped(self, event, item): list = [] ! filelist = QStringList() ! QUriDrag.decodeLocalFiles(event, filelist) ! for fullpath in filelist: ! list.append(str(fullpath)) if self.mode != self.NOSORT: --- 136,148 ---- def songDropped(self, event, item): list = [] ! if QUriDrag.canDecode(event): ! filelist = QStringList() ! if QUriDrag.decodeLocalFiles(event, filelist): ! for fullpath in filelist: ! list.append(str(fullpath)) ! elif QTextDrag.canDecode(event): ! fullpath = QString() ! if QTextDrag.decode(event, fullpath): ! list.append(str(fullpath)) if self.mode != self.NOSORT: |