[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

@ -50,6 +50,10 @@ class MiniSubtitle(QFrame):
QFrame.mousePressEvent(self, event)
subtitle = self.backend.get_subtitle(self.subtitle.id)
if subtitle:
self.parent.doAction('Details of subtitle "%s"' %
subtitle.name, self.parent.displaySubtitle, [subtitle, self.backend])
if event.button() == 4:
self.parent.parent.newTab(u'Details of subtitle "%s"' %
subtitle.name, self.backend, subtitle=subtitle)
else:
if subtitle:
self.parent.doAction('Details of subtitle "%s"' %
subtitle.name, self.parent.displaySubtitle, [subtitle, self.backend])