mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
remove sticky setting from fields dialog
https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/60
This commit is contained in:
parent
a02890a84b
commit
7caaf0c735
2 changed files with 15 additions and 28 deletions
|
@ -194,7 +194,6 @@ class FieldDialog(QDialog):
|
|||
f = self.form
|
||||
f.fontFamily.setCurrentFont(QFont(fld["font"]))
|
||||
f.fontSize.setValue(fld["size"])
|
||||
f.sticky.setChecked(fld["sticky"])
|
||||
f.sortField.setChecked(self.model["sortf"] == fld["ord"])
|
||||
f.rtl.setChecked(fld["rtl"])
|
||||
|
||||
|
@ -213,10 +212,6 @@ class FieldDialog(QDialog):
|
|||
if fld["size"] != size:
|
||||
fld["size"] = size
|
||||
self.change_tracker.mark_basic()
|
||||
sticky = f.sticky.isChecked()
|
||||
if fld["sticky"] != sticky:
|
||||
fld["sticky"] = sticky
|
||||
self.change_tracker.mark_basic()
|
||||
rtl = f.rtl.isChecked()
|
||||
if fld["rtl"] != rtl:
|
||||
fld["rtl"] = rtl
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>412</width>
|
||||
<width>483</width>
|
||||
<height>352</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -84,13 +84,6 @@
|
|||
</item>
|
||||
<item>
|
||||
<layout class="QGridLayout" name="_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>fields_editing_font</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QFontComboBox" name="fontFamily">
|
||||
<property name="minimumSize">
|
||||
|
@ -101,13 +94,6 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QCheckBox" name="rtl">
|
||||
<property name="text">
|
||||
<string>fields_reverse_text_direction_rtl</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QSpinBox" name="fontSize">
|
||||
<property name="minimum">
|
||||
|
@ -118,13 +104,6 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QCheckBox" name="sticky">
|
||||
<property name="text">
|
||||
<string>fields_remember_last_input_when_adding</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_18">
|
||||
<property name="text">
|
||||
|
@ -139,6 +118,20 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QCheckBox" name="rtl">
|
||||
<property name="text">
|
||||
<string>fields_reverse_text_direction_rtl</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>fields_editing_font</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -162,7 +155,6 @@
|
|||
<tabstop>fontFamily</tabstop>
|
||||
<tabstop>fontSize</tabstop>
|
||||
<tabstop>sortField</tabstop>
|
||||
<tabstop>sticky</tabstop>
|
||||
<tabstop>rtl</tabstop>
|
||||
<tabstop>buttonBox</tabstop>
|
||||
</tabstops>
|
||||
|
|
Loading…
Reference in a new issue