[qcineoob] better display of search results, spacer added
This commit is contained in:
parent
6ec12f70db
commit
b4832b3c54
2 changed files with 23 additions and 9 deletions
|
|
@ -227,7 +227,7 @@ class Result(QFrame):
|
||||||
|
|
||||||
def addMovie(self, movie):
|
def addMovie(self, movie):
|
||||||
minimovie = MiniMovie(self.weboob, self.weboob[movie.backend], movie, self)
|
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)
|
self.minis.append(minimovie)
|
||||||
|
|
||||||
def displayMovie(self, movie, backend):
|
def displayMovie(self, movie, backend):
|
||||||
|
|
@ -266,7 +266,7 @@ class Result(QFrame):
|
||||||
|
|
||||||
def addPerson(self, person):
|
def addPerson(self, person):
|
||||||
miniperson = MiniPerson(self.weboob, self.weboob[person.backend], person, self)
|
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)
|
self.minis.append(miniperson)
|
||||||
|
|
||||||
def displayPerson(self, person, backend):
|
def displayPerson(self, person, backend):
|
||||||
|
|
@ -311,7 +311,7 @@ class Result(QFrame):
|
||||||
|
|
||||||
def addTorrent(self, torrent):
|
def addTorrent(self, torrent):
|
||||||
minitorrent = MiniTorrent(self.weboob, self.weboob[torrent.backend], torrent, self)
|
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)
|
self.minis.append(minitorrent)
|
||||||
|
|
||||||
def displayTorrent(self, torrent, backend):
|
def displayTorrent(self, torrent, backend):
|
||||||
|
|
@ -349,7 +349,7 @@ class Result(QFrame):
|
||||||
|
|
||||||
def addSubtitle(self, subtitle):
|
def addSubtitle(self, subtitle):
|
||||||
minisubtitle = MiniSubtitle(self.weboob, self.weboob[subtitle.backend], subtitle, self)
|
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)
|
self.minis.append(minisubtitle)
|
||||||
|
|
||||||
def displaySubtitle(self, subtitle, backend):
|
def displaySubtitle(self, subtitle, backend):
|
||||||
|
|
|
||||||
|
|
@ -122,11 +122,25 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>601</width>
|
<width>605</width>
|
||||||
<height>663</height>
|
<height>667</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</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>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
@ -144,8 +158,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>96</width>
|
<width>605</width>
|
||||||
<height>26</height>
|
<height>667</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_8"/>
|
<layout class="QVBoxLayout" name="verticalLayout_8"/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue