[qcineoob] checkbox to show thumbnail in search
[allocine] fix empty productionYear problem
This commit is contained in:
parent
ce1723df16
commit
d6a0291deb
4 changed files with 23 additions and 4 deletions
|
|
@ -40,6 +40,9 @@ class MiniMovie(QFrame):
|
|||
self.ui.shortDescLabel.setText(movie.short_description)
|
||||
self.ui.backendLabel.setText(backend.name)
|
||||
|
||||
if self.parent.ui.showTCheck.isChecked():
|
||||
self.gotThumbnail()
|
||||
|
||||
def gotThumbnail(self):
|
||||
if empty(self.movie.thumbnail_url):
|
||||
self.backend.fill_movie(self.movie, ('thumbnail_url'))
|
||||
|
|
|
|||
|
|
@ -46,6 +46,9 @@ class MiniPerson(QFrame):
|
|||
self.ui.shortDescLabel.hide()
|
||||
self.ui.backendLabel.setText(backend.name)
|
||||
|
||||
if self.parent.ui.showTCheck.isChecked():
|
||||
self.gotThumbnail()
|
||||
|
||||
def gotThumbnail(self):
|
||||
self.backend.fill_person(self.person, ('thumbnail_url'))
|
||||
if not empty(self.person.thumbnail_url):
|
||||
|
|
|
|||
|
|
@ -142,6 +142,16 @@
|
|||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="showTCheck">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>may slow search process</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show thumbnails</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
|
|
@ -218,7 +228,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>708</width>
|
||||
<height>261</height>
|
||||
<height>260</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2"/>
|
||||
|
|
@ -239,8 +249,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>78</width>
|
||||
<height>18</height>
|
||||
<width>96</width>
|
||||
<height>26</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_8"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue