[qcookboob] integration of author field

This commit is contained in:
Julien Veyssier 2013-03-25 02:44:42 +01:00 committed by Florent
commit a51b63148d
2 changed files with 43 additions and 1 deletions

View file

@ -61,6 +61,10 @@ class Recipe(QFrame):
self.ui.ingredientsPlain.setPlainText('%s' % txt)
else:
self.ui.ingredientsPlain.parent().hide()
if not empty(recipe.author):
self.ui.authorLabel.setText('%s' % recipe.author)
else:
self.ui.authorLabel.parent().hide()
if not empty(recipe.instructions):
self.ui.instructionsPlain.setPlainText('%s' % recipe.instructions)
else:

View file

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>645</width>
<height>823</height>
<height>855</height>
</rect>
</property>
<property name="sizePolicy">
@ -164,6 +164,44 @@
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="frame_10">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>35</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QLabel" name="label_10">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Author:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="authorLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="frame_2">
<property name="maximumSize">