mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
disable 'review early' when study screen hit
This commit is contained in:
parent
2cd8a92584
commit
e58e5b6b9d
2 changed files with 122 additions and 6 deletions
|
@ -283,6 +283,7 @@ Please do not file a bug report with Anki.<br><br>""")
|
|||
return self.moveToState("auto")
|
||||
elif state == "studyScreen":
|
||||
self.currentCard = None
|
||||
self.deck.reviewEarly = False
|
||||
self.disableCardMenuItems()
|
||||
self.showStudyScreen()
|
||||
self.updateViews(state)
|
||||
|
|
127
designer/main.ui
127
designer/main.ui
|
@ -23,6 +23,14 @@
|
|||
<normaloff>:/icons/anki.png</normaloff>:/icons/anki.png</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>69</y>
|
||||
<width>649</width>
|
||||
<height>365</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
|
||||
<horstretch>1</horstretch>
|
||||
|
@ -136,6 +144,14 @@
|
|||
<number>5</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="page1" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>100</width>
|
||||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
||||
<item>
|
||||
<spacer name="verticalSpacer" >
|
||||
|
@ -169,6 +185,14 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="page2" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>100</width>
|
||||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3" >
|
||||
<property name="spacing" >
|
||||
<number>0</number>
|
||||
|
@ -324,6 +348,14 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="page3" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>100</width>
|
||||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4" >
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2" >
|
||||
|
@ -351,6 +383,14 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="page4" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>100</width>
|
||||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6" >
|
||||
<item>
|
||||
<spacer name="verticalSpacer_5" >
|
||||
|
@ -385,6 +425,14 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="page5" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>100</width>
|
||||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="typeAnswerLayout" >
|
||||
<item>
|
||||
<spacer name="verticalSpacer_6" >
|
||||
|
@ -404,7 +452,16 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="page" />
|
||||
<widget class="QWidget" name="page" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>364</width>
|
||||
<height>89</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" >
|
||||
|
@ -418,8 +475,25 @@
|
|||
<property name="currentIndex" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="blankPage" />
|
||||
<widget class="QWidget" name="blankPage" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>364</width>
|
||||
<height>270</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QWidget" name="welcomePage" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>364</width>
|
||||
<height>270</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5" >
|
||||
<item>
|
||||
<widget class="QTextBrowser" name="welcomeText" >
|
||||
|
@ -434,6 +508,14 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="editPage" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>364</width>
|
||||
<height>270</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2" >
|
||||
<property name="spacing" >
|
||||
<number>0</number>
|
||||
|
@ -447,6 +529,14 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="optionsPage" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>364</width>
|
||||
<height>270</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_3" >
|
||||
<property name="verticalSpacing" >
|
||||
<number>0</number>
|
||||
|
@ -468,7 +558,7 @@
|
|||
</size>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>TextLabel</string>
|
||||
<string>xxx</string>
|
||||
</property>
|
||||
<property name="textInteractionFlags" >
|
||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||
|
@ -746,6 +836,14 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="congratsPage" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>364</width>
|
||||
<height>270</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_9" >
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3" >
|
||||
|
@ -754,7 +852,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="congratsLabel" >
|
||||
<property name="text" >
|
||||
<string>TextLabel</string>
|
||||
<string>xxx</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -1026,7 +1124,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>649</width>
|
||||
<height>25</height>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuHelp" >
|
||||
|
@ -1169,11 +1267,28 @@
|
|||
<addaction name="menu_Settings" />
|
||||
<addaction name="menuHelp" />
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar" />
|
||||
<widget class="QStatusBar" name="statusbar" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>434</y>
|
||||
<width>649</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="toolBar" >
|
||||
<property name="enabled" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>23</y>
|
||||
<width>649</width>
|
||||
<height>46</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
|
|
Loading…
Reference in a new issue