[qcineoob] better display of search results, spacer added

This commit is contained in:
Julien Veyssier 2014-11-26 15:02:57 +01:00 committed by Romain Bignon
commit b4832b3c54
2 changed files with 23 additions and 9 deletions

View file

@ -227,7 +227,7 @@ class Result(QFrame):
def addMovie(self, movie):
minimovie = MiniMovie(self.weboob, self.weboob[movie.backend], movie, self)
self.ui.list_content.layout().addWidget(minimovie)
self.ui.list_content.layout().insertWidget(self.ui.list_content.layout().count()-1,minimovie)
self.minis.append(minimovie)
def displayMovie(self, movie, backend):
@ -266,7 +266,7 @@ class Result(QFrame):
def addPerson(self, person):
miniperson = MiniPerson(self.weboob, self.weboob[person.backend], person, self)
self.ui.list_content.layout().addWidget(miniperson)
self.ui.list_content.layout().insertWidget(self.ui.list_content.layout().count()-1,miniperson)
self.minis.append(miniperson)
def displayPerson(self, person, backend):
@ -311,7 +311,7 @@ class Result(QFrame):
def addTorrent(self, torrent):
minitorrent = MiniTorrent(self.weboob, self.weboob[torrent.backend], torrent, self)
self.ui.list_content.layout().addWidget(minitorrent)
self.ui.list_content.layout().insertWidget(self.ui.list_content.layout().count()-1,minitorrent)
self.minis.append(minitorrent)
def displayTorrent(self, torrent, backend):
@ -349,7 +349,7 @@ class Result(QFrame):
def addSubtitle(self, subtitle):
minisubtitle = MiniSubtitle(self.weboob, self.weboob[subtitle.backend], subtitle, self)
self.ui.list_content.layout().addWidget(minisubtitle)
self.ui.list_content.layout().insertWidget(self.ui.list_content.layout().count()-1,minisubtitle)
self.minis.append(minisubtitle)
def displaySubtitle(self, subtitle, backend):

View file

@ -122,11 +122,25 @@
<rect>
<x>0</x>
<y>0</y>
<width>601</width>
<height>663</height>
<width>605</width>
<height>667</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2"/>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
@ -144,8 +158,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>96</width>
<height>26</height>
<width>605</width>
<height>667</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8"/>