[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

@ -46,7 +46,7 @@ class MiniPerson(QFrame):
self.ui.shortDescLabel.hide()
self.ui.backendLabel.setText(backend.name)
if self.parent.ui.showTCheck.isChecked():
if self.parent.parent.ui.showTCheck.isChecked():
self.gotThumbnail()
def gotThumbnail(self):
@ -70,6 +70,10 @@ class MiniPerson(QFrame):
if event.button() == 2:
self.gotThumbnail()
if event.button() == 4:
person = self.backend.get_person(self.person.id)
self.parent.parent.newTab(u'Details of person "%s"' %
person.name, self.backend, person=person)
else:
QApplication.setOverrideCursor(Qt.WaitCursor)
person = self.backend.get_person(self.person.id)