From ef27280b085410f604365d65060da62db5d6a72b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 2 Dec 2010 03:51:09 +0900 Subject: [PATCH] remove obsolete spacing options from model properties --- ankiqt/ui/modelproperties.py | 11 +--------- designer/modelproperties.ui | 42 ++++-------------------------------- 2 files changed, 5 insertions(+), 48 deletions(-) diff --git a/ankiqt/ui/modelproperties.py b/ankiqt/ui/modelproperties.py index 8119fa53c..0f183dcda 100644 --- a/ankiqt/ui/modelproperties.py +++ b/ankiqt/ui/modelproperties.py @@ -38,8 +38,6 @@ class ModelProperties(QDialog): def readData(self): # properties section self.dialog.name.setText(self.m.name) - self.dialog.spacing.setText(str(self.m.spacing)) - self.dialog.initialSpacing.setText(str(self.m.initialSpacing/60)) self.dialog.mediaURL.setText(unicode(self.m.features)) # Cards @@ -84,7 +82,7 @@ class ModelProperties(QDialog): status="" else: status=_("; disabled") - label = _("%(name)s: used %(cards)d times%(status)s") % { + label = _("%(name)s [%(cards)d cards%(status)s]") % { 'num': n, 'name': card.name, 'status': status, @@ -267,13 +265,6 @@ class ModelProperties(QDialog): if not url.endswith("/"): url += "/" self.updateField(self.m, 'features', url) - try: - self.updateField(self.m, 'spacing', - float(self.dialog.spacing.text())) - self.updateField(self.m, 'initialSpacing', - float(self.dialog.initialSpacing.text())*60) - except ValueError: - pass # before field, or it's overwritten self.saveCurrentCard() # if changed, reset deck diff --git a/designer/modelproperties.ui b/designer/modelproperties.ui index d58f70113..307a44cf1 100644 --- a/designer/modelproperties.ui +++ b/designer/modelproperties.ui @@ -41,51 +41,17 @@ - - - - - - Minimum spacing - - - true - - - - - - - Spacing multiplier - - - true - - - - - - - - - - - - - - - - - - Media URL - + + + +