[qcineoob] tabification

This commit is contained in:
Julien Veyssier 2013-04-01 21:54:53 +02:00
commit ff0d9ced4d
9 changed files with 428 additions and 299 deletions

View file

@ -53,6 +53,10 @@ class MiniTorrent(QFrame):
QFrame.mousePressEvent(self, event)
torrent = self.backend.get_torrent(self.torrent.id)
if torrent:
self.parent.doAction('Details of torrent "%s"' %
torrent.name, self.parent.displayTorrent, [torrent, self.backend])
if event.button() == 4:
self.parent.parent.newTab(u'Details of torrent "%s"' %
torrent.name, self.backend, torrent=torrent)
else:
if torrent:
self.parent.doAction('Details of torrent "%s"' %
torrent.name, self.parent.displayTorrent, [torrent, self.backend])