mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Store: Make use of donate.png consistant with other images.
This commit is contained in:
parent
542d65bdc0
commit
66315cead2
@ -80,6 +80,51 @@
|
|||||||
</attribute>
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="text">
|
||||||
|
<string>Select:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="select_all">
|
||||||
|
<property name="text">
|
||||||
|
<string>All</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="select_none">
|
||||||
|
<property name="text">
|
||||||
|
<string>None</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="select_invert">
|
||||||
|
<property name="text">
|
||||||
|
<string>Invert</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
@ -45,6 +45,8 @@ class Matches(QAbstractItemModel):
|
|||||||
Qt.SmoothTransformation)
|
Qt.SmoothTransformation)
|
||||||
self.DRM_UNKNOWN_ICON = QPixmap(I('dialog_question.png')).scaledToHeight(64,
|
self.DRM_UNKNOWN_ICON = QPixmap(I('dialog_question.png')).scaledToHeight(64,
|
||||||
Qt.SmoothTransformation)
|
Qt.SmoothTransformation)
|
||||||
|
self.DONATE_ICON = QPixmap(I('donate.png')).scaledToHeight(16,
|
||||||
|
Qt.SmoothTransformation)
|
||||||
|
|
||||||
# All matches. Used to determine the order to display
|
# All matches. Used to determine the order to display
|
||||||
# self.matches because the SearchFilter returns
|
# self.matches because the SearchFilter returns
|
||||||
@ -180,11 +182,7 @@ class Matches(QAbstractItemModel):
|
|||||||
return QVariant(self.DRM_UNKNOWN_ICON)
|
return QVariant(self.DRM_UNKNOWN_ICON)
|
||||||
if col == 5:
|
if col == 5:
|
||||||
if result.affiliate:
|
if result.affiliate:
|
||||||
# For some reason the size(16, 16) is forgotten if the icon
|
return QVariant(self.DONATE_ICON)
|
||||||
# is a class attribute. Don't know why...
|
|
||||||
icon = QIcon()
|
|
||||||
icon.addFile(I('donate.png'), QSize(16, 16))
|
|
||||||
return QVariant(icon)
|
|
||||||
return NONE
|
return NONE
|
||||||
elif role == Qt.ToolTipRole:
|
elif role == Qt.ToolTipRole:
|
||||||
if col == 1:
|
if col == 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user