[qcineoob] add 'view thumbnail' for movie and person search results

This commit is contained in:
Julien Veyssier 2014-11-23 19:21:13 +01:00 committed by Romain Bignon
commit 2ad030c6bb
4 changed files with 141 additions and 82 deletions

View file

@ -42,6 +42,7 @@ class MiniMovie(QFrame):
self.connect(self.ui.newTabButton, SIGNAL("clicked()"), self.newTabPressed) self.connect(self.ui.newTabButton, SIGNAL("clicked()"), self.newTabPressed)
self.connect(self.ui.viewButton, SIGNAL("clicked()"), self.viewPressed) self.connect(self.ui.viewButton, SIGNAL("clicked()"), self.viewPressed)
self.connect(self.ui.viewThumbnailButton, SIGNAL("clicked()"), self.gotThumbnail)
if self.parent.parent.ui.showTCheck.isChecked(): if self.parent.parent.ui.showTCheck.isChecked():
self.gotThumbnail() self.gotThumbnail()

View file

@ -48,6 +48,7 @@ class MiniPerson(QFrame):
self.connect(self.ui.newTabButton, SIGNAL("clicked()"), self.newTabPressed) self.connect(self.ui.newTabButton, SIGNAL("clicked()"), self.newTabPressed)
self.connect(self.ui.viewButton, SIGNAL("clicked()"), self.viewPressed) self.connect(self.ui.viewButton, SIGNAL("clicked()"), self.viewPressed)
self.connect(self.ui.viewThumbnailButton, SIGNAL("clicked()"), self.gotThumbnail)
if self.parent.parent.ui.showTCheck.isChecked(): if self.parent.parent.ui.showTCheck.isChecked():
self.gotThumbnail() self.gotThumbnail()

View file

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>464</width> <width>563</width>
<height>136</height> <height>138</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -43,10 +43,14 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QFormLayout" name="formLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="fieldGrowthPolicy"> <item row="2" column="1">
<enum>QFormLayout::ExpandingFieldsGrow</enum> <widget class="QLabel" name="backendLabel">
<property name="text">
<string>TextLabel</string>
</property> </property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_5">
<property name="font"> <property name="font">
@ -60,6 +64,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0">
<widget class="QLabel" name="label_8">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Short description:</string>
</property>
</widget>
</item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QLabel" name="titleLabel"> <widget class="QLabel" name="titleLabel">
<property name="sizePolicy"> <property name="sizePolicy">
@ -83,29 +100,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0">
<widget class="QLabel" name="label_8">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Short description:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="shortDescLabel">
<property name="text">
<string>TextLabel</string>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="font"> <property name="font">
@ -119,31 +113,23 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="1" column="1">
<widget class="QLabel" name="backendLabel"> <widget class="QLabel" name="shortDescLabel">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>TextLabel</string>
</property> </property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="3" column="1">
<widget class="QPushButton" name="newTabButton"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="maximumSize"> <item>
<size>
<width>16777215</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>View in new tab</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QPushButton" name="viewButton"> <widget class="QPushButton" name="viewButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>120</width>
<height>20</height> <height>20</height>
</size> </size>
</property> </property>
@ -152,6 +138,47 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="newTabButton">
<property name="maximumSize">
<size>
<width>120</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>View in new tab</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="viewThumbnailButton">
<property name="maximumSize">
<size>
<width>120</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>View thumbnail</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>
</item> </item>
</layout> </layout>

View file

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>464</width> <width>594</width>
<height>136</height> <height>136</height>
</rect> </rect>
</property> </property>
@ -43,10 +43,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QFormLayout" name="formLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_5">
<property name="font"> <property name="font">
@ -127,23 +124,15 @@
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="3" column="1">
<widget class="QPushButton" name="newTabButton"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="maximumSize"> <property name="leftMargin">
<size> <number>0</number>
<width>16777215</width>
<height>20</height>
</size>
</property> </property>
<property name="text"> <item>
<string>View in new tab</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QPushButton" name="viewButton"> <widget class="QPushButton" name="viewButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>120</width>
<height>20</height> <height>20</height>
</size> </size>
</property> </property>
@ -152,6 +141,47 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="newTabButton">
<property name="maximumSize">
<size>
<width>120</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>View in new tab</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="viewThumbnailButton">
<property name="maximumSize">
<size>
<width>120</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>View thumbnail</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>
</item> </item>
</layout> </layout>