mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
68f7c08d32
commit
cd0beee18b
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user