mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
remove description from deckproperties
This commit is contained in:
parent
e2160c00a8
commit
593d80cd38
2 changed files with 2 additions and 54 deletions
|
@ -12,10 +12,9 @@ from anki.deck import newCardOrderLabels, newCardSchedulingLabels
|
||||||
from anki.deck import revCardOrderLabels
|
from anki.deck import revCardOrderLabels
|
||||||
from anki.utils import hexifyID, dehexifyID
|
from anki.utils import hexifyID, dehexifyID
|
||||||
|
|
||||||
tabs = ("Synchronization",
|
tabs = ("Scheduling",
|
||||||
"Scheduling",
|
"Synchronization",
|
||||||
"Models",
|
"Models",
|
||||||
"Description",
|
|
||||||
"Advanced")
|
"Advanced")
|
||||||
|
|
||||||
class DeckProperties(QDialog):
|
class DeckProperties(QDialog):
|
||||||
|
@ -44,8 +43,6 @@ class DeckProperties(QDialog):
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def readData(self):
|
def readData(self):
|
||||||
# description
|
|
||||||
self.dialog.deckDescription.setText(self.d.description)
|
|
||||||
# syncing
|
# syncing
|
||||||
sn = self.d.syncName
|
sn = self.d.syncName
|
||||||
if sn:
|
if sn:
|
||||||
|
@ -208,9 +205,6 @@ class DeckProperties(QDialog):
|
||||||
def reject(self):
|
def reject(self):
|
||||||
n = _("Deck Properties")
|
n = _("Deck Properties")
|
||||||
self.parent.deck.setUndoStart(n)
|
self.parent.deck.setUndoStart(n)
|
||||||
# description
|
|
||||||
self.updateField(self.d, 'description',
|
|
||||||
unicode(self.dialog.deckDescription.toPlainText()))
|
|
||||||
# syncing
|
# syncing
|
||||||
if self.dialog.doSync.checkState() == Qt.Checked:
|
if self.dialog.doSync.checkState() == Qt.Checked:
|
||||||
self.updateField(self.d, 'syncName',
|
self.updateField(self.d, 'syncName',
|
||||||
|
|
|
@ -413,51 +413,6 @@ p, li { white-space: pre-wrap; }
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab" >
|
|
||||||
<property name="geometry" >
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>378</width>
|
|
||||||
<height>334</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<attribute name="title" >
|
|
||||||
<string>Description</string>
|
|
||||||
</attribute>
|
|
||||||
<layout class="QVBoxLayout" >
|
|
||||||
<property name="spacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<property name="margin" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label" >
|
|
||||||
<property name="text" >
|
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
|
||||||
p, li { white-space: pre-wrap; }
|
|
||||||
</style></head><body style=" font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal;">
|
|
||||||
<p style=" margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:xx-large; font-weight:600;"><span style=" font-size:xx-large;">Deck Description</span></p></body></html></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QTextEdit" name="deckDescription" >
|
|
||||||
<property name="minimumSize" >
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>100</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="tabChangesFocus" >
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="QWidget" name="tab_4" >
|
<widget class="QWidget" name="tab_4" >
|
||||||
<property name="geometry" >
|
<property name="geometry" >
|
||||||
<rect>
|
<rect>
|
||||||
|
@ -770,7 +725,6 @@ p, li { white-space: pre-wrap; }
|
||||||
<tabstop>modelsAdd</tabstop>
|
<tabstop>modelsAdd</tabstop>
|
||||||
<tabstop>modelsEdit</tabstop>
|
<tabstop>modelsEdit</tabstop>
|
||||||
<tabstop>modelsDelete</tabstop>
|
<tabstop>modelsDelete</tabstop>
|
||||||
<tabstop>deckDescription</tabstop>
|
|
||||||
<tabstop>delay0</tabstop>
|
<tabstop>delay0</tabstop>
|
||||||
<tabstop>delay1</tabstop>
|
<tabstop>delay1</tabstop>
|
||||||
<tabstop>delay2</tabstop>
|
<tabstop>delay2</tabstop>
|
||||||
|
|
Loading…
Reference in a new issue