mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Another QIcon.scaled typo
This commit is contained in:
parent
9e8141d5db
commit
206a4d6535
@ -10,7 +10,7 @@ import glob, os, string, shutil
|
|||||||
from functools import partial
|
from functools import partial
|
||||||
from PyQt5.Qt import (
|
from PyQt5.Qt import (
|
||||||
QDialog, QVBoxLayout, QListWidget, QListWidgetItem, Qt, QIcon,
|
QDialog, QVBoxLayout, QListWidget, QListWidgetItem, Qt, QIcon,
|
||||||
QApplication, QSize, QPixmap, QDialogButtonBox, QTimer, QLabel)
|
QApplication, QSize, QDialogButtonBox, QTimer, QLabel)
|
||||||
|
|
||||||
from calibre.constants import config_dir
|
from calibre.constants import config_dir
|
||||||
from calibre.gui2 import choose_files, error_dialog
|
from calibre.gui2 import choose_files, error_dialog
|
||||||
@ -91,7 +91,7 @@ class TextureChooser(QDialog):
|
|||||||
|
|
||||||
def create_item(self, data):
|
def create_item(self, data):
|
||||||
x = data
|
x = data
|
||||||
i = QListWidgetItem(QIcon(QPixmap(x['path']).scaled(256, 256, transformMode=Qt.SmoothTransformation)), x['name'], self.images)
|
i = QListWidgetItem(QIcon(x['path']), x['name'], self.images)
|
||||||
i.setData(Qt.UserRole, x['fname'])
|
i.setData(Qt.UserRole, x['fname'])
|
||||||
i.setData(Qt.UserRole+1, x['path'])
|
i.setData(Qt.UserRole+1, x['path'])
|
||||||
return i
|
return i
|
||||||
|
Loading…
x
Reference in New Issue
Block a user