개정판 5e9d3cd9
issue #628: image scale
Change-Id: I48edbd28037c27e13fa3a89975b45aa0eec7fa22
DTI_PID/DTI_PID/LibraryItem.py | ||
---|---|---|
118 | 118 |
#icon.setSizePolicy(QSizePolicy.Ignored,QSizePolicy.Ignored) |
119 | 119 |
icon.setScaledContents(True) |
120 | 120 |
#icon.resize(symbol.pixmap.width(), symbol.pixmap.height()) |
121 |
icon.setPixmap(symbol.pixmap) |
|
121 |
icon.setPixmap(symbol.pixmap.scaledToHeight(44))
|
|
122 | 122 |
layout = QGridLayout() |
123 | 123 |
layout.addWidget(icon, 0, 0, Qt.AlignHCenter) |
124 | 124 |
title = QLabel(symbol.getName()) |
내보내기 Unified diff