[qcookboob] integration of author field
This commit is contained in:
parent
d391d1a2d8
commit
a51b63148d
2 changed files with 43 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue