mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-27 04:25:49 +01:00
...
This commit is contained in:
parent
68f7c08d32
commit
cd0beee18b
1 changed files with 6 additions and 3 deletions
|
|
@ -140,11 +140,14 @@ def dropEvent(self, event):
|
|||
item.category_key in \
|
||||
('tags', 'series', 'authors', 'rating', 'publisher'):
|
||||
child = m.data(idx, Qt.UserRole)
|
||||
self.handle_drop(item, child)
|
||||
md = event.mimeData()
|
||||
mime = 'application/calibre+from_library'
|
||||
ids = list(map(int, str(md.data(mime)).split()))
|
||||
self.handle_drop(item, child, ids)
|
||||
event.accept()
|
||||
|
||||
def handle_drop(self, parent, child):
|
||||
pass
|
||||
def handle_drop(self, parent, child, ids):
|
||||
print 'Dropped ids:', ids
|
||||
|
||||
@property
|
||||
def match_all(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue