mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1983 (Schedule news download - user and password fields)
This commit is contained in:
parent
f967c00b9f
commit
750461e3ba
@ -366,9 +366,14 @@ class SchedulerDialog(QDialog, Ui_Dialog):
|
|||||||
def show_recipe(self, index):
|
def show_recipe(self, index):
|
||||||
recipe = self._model.data(index, Qt.UserRole)
|
recipe = self._model.data(index, Qt.UserRole)
|
||||||
self.current_recipe = recipe
|
self.current_recipe = recipe
|
||||||
self.title.setText(recipe.title)
|
self.blurb.setText('''
|
||||||
self.author.setText(_('Created by: ') + recipe.author)
|
<p>
|
||||||
self.description.setText(recipe.description if recipe.description else '')
|
<b>%(title)s</b><br>
|
||||||
|
%(cb)s %(author)s<br/>
|
||||||
|
%(description)s
|
||||||
|
</p>
|
||||||
|
'''%dict(title=recipe.title, cb=_('Created by: '), author=recipe.author,
|
||||||
|
description=recipe.description if recipe.description else ''))
|
||||||
self.allow_scheduling = False
|
self.allow_scheduling = False
|
||||||
schedule = -1 if recipe.schedule is None else recipe.schedule
|
schedule = -1 if recipe.schedule is None else recipe.schedule
|
||||||
if schedule < 1e5 and schedule >= 0:
|
if schedule < 1e5 and schedule >= 0:
|
||||||
|
@ -54,6 +54,27 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="0" column="1" >
|
<item row="0" column="1" >
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3" >
|
<layout class="QVBoxLayout" name="verticalLayout_3" >
|
||||||
|
<item>
|
||||||
|
<widget class="QScrollArea" name="scrollArea" >
|
||||||
|
<property name="frameShape" >
|
||||||
|
<enum>QFrame::NoFrame</enum>
|
||||||
|
</property>
|
||||||
|
<property name="widgetResizable" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="scrollAreaWidgetContents" >
|
||||||
|
<property name="geometry" >
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>361</width>
|
||||||
|
<height>500</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_5" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="detail_box" >
|
<widget class="QGroupBox" name="detail_box" >
|
||||||
<property name="title" >
|
<property name="title" >
|
||||||
@ -61,51 +82,21 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4" >
|
<layout class="QVBoxLayout" name="verticalLayout_4" >
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="title" >
|
<widget class="QLabel" name="blurb" >
|
||||||
<property name="font" >
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>title</string>
|
<string>blurb</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="textFormat" >
|
<property name="textFormat" >
|
||||||
<enum>Qt::PlainText</enum>
|
<enum>Qt::RichText</enum>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="description" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>description</string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap" >
|
<property name="wordWrap" >
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="openExternalLinks" >
|
||||||
</item>
|
<bool>true</bool>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="author" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>author</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer_2" >
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0" >
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="schedule" >
|
<widget class="QCheckBox" name="schedule" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
@ -257,19 +248,6 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer_3" >
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0" >
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label" >
|
<widget class="QLabel" name="label" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
@ -287,21 +265,12 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
</layout>
|
||||||
<spacer name="verticalSpacer" >
|
</widget>
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0" >
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user