This commit is contained in:
Kovid Goyal 2010-10-03 17:03:15 -06:00
parent 68f7c08d32
commit cd0beee18b

View File

@ -140,11 +140,14 @@ class TagsView(QTreeView): # {{{
item.category_key in \ item.category_key in \
('tags', 'series', 'authors', 'rating', 'publisher'): ('tags', 'series', 'authors', 'rating', 'publisher'):
child = m.data(idx, Qt.UserRole) 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() event.accept()
def handle_drop(self, parent, child): def handle_drop(self, parent, child, ids):
pass print 'Dropped ids:', ids
@property @property
def match_all(self): def match_all(self):