Add resource file - Incorporates icons from the Papirus-Dark icon theme

More keyboard shortcuts
This commit is contained in:
BasioMeusPuga
2017-11-15 12:17:49 +05:30
parent a17a150a45
commit 945c5c0b49
8 changed files with 1276 additions and 18 deletions

View File

@@ -105,7 +105,10 @@ class Library:
# QtCore.Qt.DisplayRole is the same as item.setText()
# The model is a single row and has no columns
img_pixmap = QtGui.QPixmap()
img_pixmap.loadFromData(cover)
if cover:
img_pixmap.loadFromData(cover)
else:
img_pixmap.load(':/images/NotFound.png')
img_pixmap = img_pixmap.scaled(420, 600, QtCore.Qt.IgnoreAspectRatio)
item = QtGui.QStandardItem()
item.setToolTip(tooltip_string)