mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
added finish button
This commit is contained in:
parent
0f3ad34af2
commit
f047f0222a
2 changed files with 21 additions and 2 deletions
|
@ -115,6 +115,9 @@ class AnkiQt(QMainWindow):
|
||||||
self.connect(self.mainWin.reviewEarlyButton,
|
self.connect(self.mainWin.reviewEarlyButton,
|
||||||
SIGNAL("clicked()"),
|
SIGNAL("clicked()"),
|
||||||
self.onReviewEarly)
|
self.onReviewEarly)
|
||||||
|
self.connect(self.mainWin.finishButton,
|
||||||
|
SIGNAL("clicked()"),
|
||||||
|
self.onClose)
|
||||||
# notices
|
# notices
|
||||||
self.mainWin.noticeFrame.setShown(False)
|
self.mainWin.noticeFrame.setShown(False)
|
||||||
self.connect(self.mainWin.noticeButton, SIGNAL("clicked()"),
|
self.connect(self.mainWin.noticeButton, SIGNAL("clicked()"),
|
||||||
|
@ -330,8 +333,8 @@ Please do not file a bug report with Anki.<br>""")
|
||||||
not not self.deck.newCount)
|
not not self.deck.newCount)
|
||||||
self.startRefreshTimer()
|
self.startRefreshTimer()
|
||||||
self.bodyView.setState(state)
|
self.bodyView.setState(state)
|
||||||
# make sure the buttons aren't focused
|
# focus finish button
|
||||||
self.mainWin.congratsLabel.setFocus()
|
self.mainWin.finishButton.setFocus()
|
||||||
elif state == "showQuestion":
|
elif state == "showQuestion":
|
||||||
self.reviewingStarted = True
|
self.reviewingStarted = True
|
||||||
if self.deck.mediaDir():
|
if self.deck.mediaDir():
|
||||||
|
|
|
@ -1213,6 +1213,19 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="finishButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Fi&nish</string>
|
||||||
|
</property>
|
||||||
|
<property name="autoDefault">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="default">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -3456,6 +3469,7 @@
|
||||||
<tabstop>optionsHelpButton</tabstop>
|
<tabstop>optionsHelpButton</tabstop>
|
||||||
<tabstop>learnMoreButton</tabstop>
|
<tabstop>learnMoreButton</tabstop>
|
||||||
<tabstop>reviewEarlyButton</tabstop>
|
<tabstop>reviewEarlyButton</tabstop>
|
||||||
|
<tabstop>finishButton</tabstop>
|
||||||
<tabstop>downloadDeckButton</tabstop>
|
<tabstop>downloadDeckButton</tabstop>
|
||||||
<tabstop>newDeckButton</tabstop>
|
<tabstop>newDeckButton</tabstop>
|
||||||
<tabstop>importDeckButton</tabstop>
|
<tabstop>importDeckButton</tabstop>
|
||||||
|
@ -3466,6 +3480,8 @@
|
||||||
<tabstop>saveEditorButton</tabstop>
|
<tabstop>saveEditorButton</tabstop>
|
||||||
<tabstop>showAnswerButton</tabstop>
|
<tabstop>showAnswerButton</tabstop>
|
||||||
<tabstop>help</tabstop>
|
<tabstop>help</tabstop>
|
||||||
|
<tabstop>noticeButton</tabstop>
|
||||||
|
<tabstop>welcomeText</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../icons.qrc"/>
|
<include location="../icons.qrc"/>
|
||||||
|
|
Loading…
Reference in a new issue