This commit is contained in:
Kovid Goyal 2013-08-12 21:40:12 +05:30
parent f017da50aa
commit db9056d5a1
2 changed files with 5 additions and 2 deletions

View File

@ -345,7 +345,7 @@ class CoverDelegate(QStyledItemDelegate):
def calculate_spacing(self): def calculate_spacing(self):
spc = self.original_spacing = gprefs['cover_grid_spacing'] spc = self.original_spacing = gprefs['cover_grid_spacing']
if spc < 0.1: if spc < 0.01:
self.spacing = max(10, min(50, int(0.1 * self.original_width))) self.spacing = max(10, min(50, int(0.1 * self.original_width)))
else: else:
self.spacing = self.parent().logicalDpiX() * CM_TO_INCH * spc self.spacing = self.parent().logicalDpiX() * CM_TO_INCH * spc

View File

@ -289,7 +289,10 @@
<string> cm</string> <string> cm</string>
</property> </property>
<property name="decimals"> <property name="decimals">
<number>1</number> <number>2</number>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property> </property>
</widget> </widget>
</item> </item>