mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge from trunk
This commit is contained in:
commit
1c3a69f19d
@ -403,12 +403,14 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
|||||||
ag = QCoreApplication.instance().desktop().availableGeometry(self)
|
ag = QCoreApplication.instance().desktop().availableGeometry(self)
|
||||||
self.cover.MAX_HEIGHT = ag.height()-(25 if (islinux or isfreebsd) else 0)-height_of_rest
|
self.cover.MAX_HEIGHT = ag.height()-(25 if (islinux or isfreebsd) else 0)-height_of_rest
|
||||||
self.cover.MAX_WIDTH = ag.width()-(25 if (islinux or isfreebsd) else 0)-width_of_rest
|
self.cover.MAX_WIDTH = ag.width()-(25 if (islinux or isfreebsd) else 0)-width_of_rest
|
||||||
|
pm = QPixmap()
|
||||||
if cover:
|
if cover:
|
||||||
pm = QPixmap()
|
|
||||||
pm.loadFromData(cover)
|
pm.loadFromData(cover)
|
||||||
if not pm.isNull():
|
if pm.isNull():
|
||||||
self.cover.setPixmap(pm)
|
pm = QPixmap(I('book.svg'))
|
||||||
|
else:
|
||||||
self.cover_data = cover
|
self.cover_data = cover
|
||||||
|
self.cover.setPixmap(pm)
|
||||||
self.original_series_name = unicode(self.series.text()).strip()
|
self.original_series_name = unicode(self.series.text()).strip()
|
||||||
if len(db.custom_column_label_map) == 0:
|
if len(db.custom_column_label_map) == 0:
|
||||||
self.central_widget.tabBar().setVisible(False)
|
self.central_widget.tabBar().setVisible(False)
|
||||||
|
@ -52,10 +52,7 @@ class BookInfoDisplay(QWidget):
|
|||||||
QLabel.__init__(self)
|
QLabel.__init__(self)
|
||||||
self.setMaximumWidth(81)
|
self.setMaximumWidth(81)
|
||||||
self.setMaximumHeight(108)
|
self.setMaximumHeight(108)
|
||||||
self.default_pixmap = QPixmap(coverpath).scaled(self.maximumWidth(),
|
self.default_pixmap = QPixmap(coverpath)
|
||||||
self.maximumHeight(),
|
|
||||||
Qt.IgnoreAspectRatio,
|
|
||||||
Qt.SmoothTransformation)
|
|
||||||
self.setScaledContents(True)
|
self.setScaledContents(True)
|
||||||
self.statusbar_height = 120
|
self.statusbar_height = 120
|
||||||
self.setPixmap(self.default_pixmap)
|
self.setPixmap(self.default_pixmap)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user