예제 #1
0
 def show_cover(self):
     idx = self.currentIndex()
     pmap = self.model().cover_pixmap(idx)
     if pmap is not None:
         from calibre.gui2.viewer.image_popup import ImageView
         d = ImageView(self, pmap, unicode(idx.data(Qt.DisplayRole).toString()), geom_name='metadata_download_cover_popup_geom')
         d(use_exec=True)
예제 #2
0
 def show_cover(self):
     idx = self.currentIndex()
     pmap = self.model().cover_pixmap(idx)
     if pmap is None and idx.row() == 0:
         pmap = self.model().cc
     if pmap is not None:
         from calibre.gui2.viewer.image_popup import ImageView
         d = ImageView(self,
                       pmap,
                       str(idx.data(Qt.DisplayRole) or ''),
                       geom_name='metadata_download_cover_popup_geom')
         d(use_exec=True)