switch ctrl+r and shift+ctrl+r

This commit is contained in:
Damien Elmes 2009-06-06 23:16:08 +09:00
parent 9fe87329cd
commit a1d23c3e7b
2 changed files with 871 additions and 870 deletions

View file

@ -1130,8 +1130,8 @@ your deck."""))
lambda idx, c=c: self.onDeckBrowserMore(idx, c)) lambda idx, c=c: self.onDeckBrowserMore(idx, c))
layout.addWidget(moreButton, c+1, 5) layout.addWidget(moreButton, c+1, 5)
refresh = QPushButton(_("Refresh")) refresh = QPushButton(_("Refresh"))
refresh.setToolTip(_("Check due counts again (Ctrl+r)")) refresh.setToolTip(_("Check due counts again (Ctrl+Shift+r)"))
refresh.setShortcut(_("Ctrl+r")) refresh.setShortcut(_("Ctrl+Shift+r"))
self.connect(refresh, SIGNAL("clicked()"), self.connect(refresh, SIGNAL("clicked()"),
self.forceBrowserRefresh) self.forceBrowserRefresh)
layout.addWidget(refresh, c+2, 4) layout.addWidget(refresh, c+2, 4)

View file

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>MainWindow</class> <class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow"> <widget class="QMainWindow" name="MainWindow">
@ -10,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -24,7 +25,7 @@
</property> </property>
<widget class="QWidget" name="centralwidget"> <widget class="QWidget" name="centralwidget">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>1</horstretch> <horstretch>1</horstretch>
<verstretch>1</verstretch> <verstretch>1</verstretch>
</sizepolicy> </sizepolicy>
@ -60,7 +61,7 @@
<item row="1" column="0"> <item row="1" column="0">
<widget class="QStackedWidget" name="buttonStack"> <widget class="QStackedWidget" name="buttonStack">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" > <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>1</verstretch> <verstretch>1</verstretch>
</sizepolicy> </sizepolicy>
@ -197,7 +198,7 @@
<item> <item>
<widget class="QPushButton" name="showAnswerButton"> <widget class="QPushButton" name="showAnswerButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" > <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -379,7 +380,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QStackedWidget" name="mainStack"> <widget class="QStackedWidget" name="mainStack">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>100</verstretch> <verstretch>100</verstretch>
</sizepolicy> </sizepolicy>
@ -547,7 +548,7 @@
<number>4</number> <number>4</number>
</property> </property>
<item> <item>
<widget class="QWidget" native="1" name="fieldsArea" /> <widget class="QWidget" name="fieldsArea" native="true"/>
</item> </item>
<item> <item>
<widget class="QPushButton" name="saveEditorButton"> <widget class="QPushButton" name="saveEditorButton">
@ -677,10 +678,10 @@
</size> </size>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>The &lt;b>number of minutes in a session&lt;/b>. When a session is finished, this screen will be shown again, allowing you to start another session. Choose 0 for no limit.</string> <string>The &lt;b&gt;number of minutes in a session&lt;/b&gt;. When a session is finished, this screen will be shown again, allowing you to start another session. Choose 0 for no limit.</string>
</property> </property>
<property name="text"> <property name="text">
<string>&lt;b>Session limit (minutes):&lt;/b></string> <string>&lt;b&gt;Session limit (minutes):&lt;/b&gt;</string>
</property> </property>
<property name="margin"> <property name="margin">
<number>4</number> <number>4</number>
@ -690,7 +691,7 @@
<item row="1" column="1"> <item row="1" column="1">
<widget class="QLineEdit" name="minuteLimit"> <widget class="QLineEdit" name="minuteLimit">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -712,10 +713,10 @@
</size> </size>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>The maximum number of &lt;b>new cards shown per day&lt;/b>. The default is 20, to ensure you don't get overwhelmed with reviews after a few days.</string> <string>The maximum number of &lt;b&gt;new cards shown per day&lt;/b&gt;. The default is 20, to ensure you don't get overwhelmed with reviews after a few days.</string>
</property> </property>
<property name="text"> <property name="text">
<string>&lt;b>New cards per day:&lt;/b></string> <string>&lt;b&gt;New cards per day:&lt;/b&gt;</string>
</property> </property>
<property name="margin"> <property name="margin">
<number>4</number> <number>4</number>
@ -725,7 +726,7 @@
<item row="0" column="1"> <item row="0" column="1">
<widget class="QLineEdit" name="newPerDay"> <widget class="QLineEdit" name="newPerDay">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -754,7 +755,7 @@
<item row="2" column="1"> <item row="2" column="1">
<widget class="QLineEdit" name="questionLimit"> <widget class="QLineEdit" name="questionLimit">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -770,10 +771,10 @@
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="toolTip"> <property name="toolTip">
<string>The &lt;b>number of questions in a session&lt;/b>. When a session is finished, this screen will be shown again, allowing you to start another session. Choose 0 for no limit.</string> <string>The &lt;b&gt;number of questions in a session&lt;/b&gt;. When a session is finished, this screen will be shown again, allowing you to start another session. Choose 0 for no limit.</string>
</property> </property>
<property name="text"> <property name="text">
<string>&lt;b>Session limit (questions):</string> <string>&lt;b&gt;Session limit (questions):</string>
</property> </property>
<property name="margin"> <property name="margin">
<number>4</number> <number>4</number>
@ -785,7 +786,7 @@
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_12"> <layout class="QVBoxLayout" name="verticalLayout_12">
<item> <item>
<widget class="QWidget" native="1" name="optionsBox" > <widget class="QWidget" name="optionsBox" native="true">
<layout class="QVBoxLayout" name="verticalLayout_7"> <layout class="QVBoxLayout" name="verticalLayout_7">
<property name="spacing"> <property name="spacing">
<number>10</number> <number>10</number>
@ -828,7 +829,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QPushButton" name="startReviewingButton"> <widget class="QPushButton" name="startReviewingButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -1122,7 +1123,7 @@
<item> <item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="text"> <property name="text">
<string>&lt;h1>Decks&lt;/h1></string> <string>&lt;h1&gt;Decks&lt;/h1&gt;</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -1282,7 +1283,7 @@
<item> <item>
<widget class="QFrame" name="innerHelpFrame"> <widget class="QFrame" name="innerHelpFrame">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" > <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -1346,7 +1347,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Expanding" hsizetype="Preferred" > <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -1452,7 +1453,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>707</width> <width>707</width>
<height>22</height> <height>23</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuHelp"> <widget class="QMenu" name="menuHelp">
@ -2319,7 +2320,7 @@
<string>Open Recent...</string> <string>Open Recent...</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Shift+R</string> <string>Ctrl+R</string>
</property> </property>
</action> </action>
</widget> </widget>