mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -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 = self.form
|
||||||
f.fontFamily.setCurrentFont(QFont(fld["font"]))
|
f.fontFamily.setCurrentFont(QFont(fld["font"]))
|
||||||
f.fontSize.setValue(fld["size"])
|
f.fontSize.setValue(fld["size"])
|
||||||
f.sticky.setChecked(fld["sticky"])
|
|
||||||
f.sortField.setChecked(self.model["sortf"] == fld["ord"])
|
f.sortField.setChecked(self.model["sortf"] == fld["ord"])
|
||||||
f.rtl.setChecked(fld["rtl"])
|
f.rtl.setChecked(fld["rtl"])
|
||||||
|
|
||||||
|
@ -213,10 +212,6 @@ class FieldDialog(QDialog):
|
||||||
if fld["size"] != size:
|
if fld["size"] != size:
|
||||||
fld["size"] = size
|
fld["size"] = size
|
||||||
self.change_tracker.mark_basic()
|
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()
|
rtl = f.rtl.isChecked()
|
||||||
if fld["rtl"] != rtl:
|
if fld["rtl"] != rtl:
|
||||||
fld["rtl"] = rtl
|
fld["rtl"] = rtl
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>412</width>
|
<width>483</width>
|
||||||
<height>352</height>
|
<height>352</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
@ -84,13 +84,6 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="_2">
|
<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">
|
<item row="0" column="1">
|
||||||
<widget class="QFontComboBox" name="fontFamily">
|
<widget class="QFontComboBox" name="fontFamily">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
|
@ -101,13 +94,6 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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">
|
<item row="0" column="2">
|
||||||
<widget class="QSpinBox" name="fontSize">
|
<widget class="QSpinBox" name="fontSize">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
|
@ -118,13 +104,6 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label_18">
|
<widget class="QLabel" name="label_18">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -139,6 +118,20 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@ -162,7 +155,6 @@
|
||||||
<tabstop>fontFamily</tabstop>
|
<tabstop>fontFamily</tabstop>
|
||||||
<tabstop>fontSize</tabstop>
|
<tabstop>fontSize</tabstop>
|
||||||
<tabstop>sortField</tabstop>
|
<tabstop>sortField</tabstop>
|
||||||
<tabstop>sticky</tabstop>
|
|
||||||
<tabstop>rtl</tabstop>
|
<tabstop>rtl</tabstop>
|
||||||
<tabstop>buttonBox</tabstop>
|
<tabstop>buttonBox</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
|
|
Loading…
Reference in a new issue