remove description from deckproperties

This commit is contained in:
Damien Elmes 2008-12-05 21:49:41 +09:00
parent e2160c00a8
commit 593d80cd38
2 changed files with 2 additions and 54 deletions

View file

@ -12,10 +12,9 @@ from anki.deck import newCardOrderLabels, newCardSchedulingLabels
from anki.deck import revCardOrderLabels
from anki.utils import hexifyID, dehexifyID
tabs = ("Synchronization",
"Scheduling",
tabs = ("Scheduling",
"Synchronization",
"Models",
"Description",
"Advanced")
class DeckProperties(QDialog):
@ -44,8 +43,6 @@ class DeckProperties(QDialog):
self.show()
def readData(self):
# description
self.dialog.deckDescription.setText(self.d.description)
# syncing
sn = self.d.syncName
if sn:
@ -208,9 +205,6 @@ class DeckProperties(QDialog):
def reject(self):
n = _("Deck Properties")
self.parent.deck.setUndoStart(n)
# description
self.updateField(self.d, 'description',
unicode(self.dialog.deckDescription.toPlainText()))
# syncing
if self.dialog.doSync.checkState() == Qt.Checked:
self.updateField(self.d, 'syncName',

View file

@ -413,51 +413,6 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</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>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal;">
&lt;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;">&lt;span style=" font-size:xx-large;">Deck Description&lt;/span>&lt;/p>&lt;/body>&lt;/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" >
<property name="geometry" >
<rect>
@ -770,7 +725,6 @@ p, li { white-space: pre-wrap; }
<tabstop>modelsAdd</tabstop>
<tabstop>modelsEdit</tabstop>
<tabstop>modelsDelete</tabstop>
<tabstop>deckDescription</tabstop>
<tabstop>delay0</tabstop>
<tabstop>delay1</tabstop>
<tabstop>delay2</tabstop>