mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-18 19:13:22 +02:00
Fix advanced recipe edit widget not using monospace font on non linux systems
This commit is contained in:
parent
9907f4d315
commit
5bdcea1b8c
2 changed files with 4 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
import time, os
|
||||
|
||||
from PyQt4.Qt import SIGNAL, QUrl, QAbstractListModel, Qt, \
|
||||
QVariant
|
||||
QVariant, QFont
|
||||
|
||||
from calibre.web.feeds.recipes import compile_recipe, custom_recipes
|
||||
from calibre.web.feeds.news import AutomaticNewsRecipe
|
||||
|
|
@ -83,6 +83,9 @@ def __init__(self, parent, recipe_model):
|
|||
self._model = self.model = CustomRecipeModel(recipe_model)
|
||||
self.available_profiles.setModel(self._model)
|
||||
self.available_profiles.currentChanged = self.current_changed
|
||||
f = QFont()
|
||||
f.setStyleHint(f.Monospace)
|
||||
self.source_code.setFont(f)
|
||||
|
||||
self.connect(self.remove_feed_button, SIGNAL('clicked(bool)'),
|
||||
self.added_feeds.remove_selected_items)
|
||||
|
|
|
|||
|
|
@ -410,11 +410,6 @@ p, li { white-space: pre-wrap; }
|
|||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>DejaVu Sans Mono</family>
|
||||
</font>
|
||||
</property>
|
||||
<property name="lineWrapMode">
|
||||
<enum>QTextEdit::NoWrap</enum>
|
||||
</property>
|
||||
|
|
|
|||
Loading…
Reference in a new issue