mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
sensible default geom; allow units other than days
This commit is contained in:
parent
a64075916c
commit
998ce99980
1 changed files with 8 additions and 1 deletions
|
@ -757,7 +757,10 @@ class Browser(QMainWindow):
|
||||||
bb.connect(bb, SIGNAL("rejected()"), d, SLOT("reject()"))
|
bb.connect(bb, SIGNAL("rejected()"), d, SLOT("reject()"))
|
||||||
d.setLayout(l)
|
d.setLayout(l)
|
||||||
d.setWindowModality(Qt.WindowModal)
|
d.setWindowModality(Qt.WindowModal)
|
||||||
|
d.resize(500, 400)
|
||||||
|
restoreGeom(d, "revlog")
|
||||||
d.exec_()
|
d.exec_()
|
||||||
|
saveGeom(d, "revlog")
|
||||||
|
|
||||||
def _revlogData(self):
|
def _revlogData(self):
|
||||||
s = "<table width=100%%><tr><th align=left>%s</th>" % _("Date")
|
s = "<table width=100%%><tr><th align=left>%s</th>" % _("Date")
|
||||||
|
@ -784,9 +787,13 @@ class Browser(QMainWindow):
|
||||||
tstr = fmt % ("#000", tstr)
|
tstr = fmt % ("#000", tstr)
|
||||||
if ease == 1:
|
if ease == 1:
|
||||||
ease = fmt % (st.colRelearn, ease)
|
ease = fmt % (st.colRelearn, ease)
|
||||||
|
if ivl >= 0:
|
||||||
|
ivl = fmtTimeSpan(ivl*86400, short=True)
|
||||||
|
else:
|
||||||
|
ivl = self.cardStats.time(-ivl)
|
||||||
s += ("<td align=right>%s</td>" * 5) % (
|
s += ("<td align=right>%s</td>" * 5) % (
|
||||||
tstr,
|
tstr,
|
||||||
ease, _("%dd") % ivl if ivl >= 0 else self.cardStats.time(-ivl),
|
ease, ivl,
|
||||||
"%d%%" % (factor/10) if factor else "",
|
"%d%%" % (factor/10) if factor else "",
|
||||||
self.cardStats.time(taken)) + "</tr>"
|
self.cardStats.time(taken)) + "</tr>"
|
||||||
s += "</table>"
|
s += "</table>"
|
||||||
|
|
Loading…
Reference in a new issue