summaryrefslogtreecommitdiffstats
path: root/src/linguist/linguist/mainwindow.ui
diff options
context:
space:
mode:
authorJosep LlodrĂ  <jlg.hrtc@gmail.com>2018-03-31 17:53:48 +0200
committerJosep LlodrĂ  Grimalt <jlg.hrtc@gmail.com>2018-04-13 13:38:01 +0000
commit1636b5c80b0a4e8de11a1eb537682c0359141eeb (patch)
tree858599ff12fd88bdf3834869511b12fc3800583c /src/linguist/linguist/mainwindow.ui
parent0c017d45c2ca6279cae418fa951ae2d8a9773020 (diff)
linguist: Add actions in View menu to show more/fewer guessesv5.11.0-beta4
Three actions have been added to the main View menu (Guesses submenu) in order to easily change the number of Guesses displayed. View Menu ...... Guesses > Show more (alt - +) [shows 5 more guesses] Show fewer (alt - -) [shows 5 fewer guesses] --- Reset to default (alt - 0) [resets to 5 guesses] ...... Motivation behind this commit is that in large UIs with thousands of strings, 5 guesses are not enough in some situations to gather all the information necessary to correctly translate a string. Change-Id: I3fdc1b8fc27af40300897cdfd1f9fa3620caad55 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/linguist/linguist/mainwindow.ui')
-rw-r--r--src/linguist/linguist/mainwindow.ui34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/linguist/linguist/mainwindow.ui b/src/linguist/linguist/mainwindow.ui
index c09015912..6b4922e16 100644
--- a/src/linguist/linguist/mainwindow.ui
+++ b/src/linguist/linguist/mainwindow.ui
@@ -110,6 +110,15 @@
<addaction name="separator"/>
<addaction name="actionResetZoomToDefault"/>
</widget>
+ <widget class="QMenu" name="menuGuesses">
+ <property name="title">
+ <string>Guesses</string>
+ </property>
+ <addaction name="actionShowMoreGuesses"/>
+ <addaction name="actionShowFewerGuesses"/>
+ <addaction name="separator"/>
+ <addaction name="actionResetGuessesToDefault"/>
+ </widget>
<addaction name="actionResetSorting"/>
<addaction name="actionDisplayGuesses"/>
<addaction name="actionStatistics"/>
@@ -117,6 +126,7 @@
<addaction name="actionVisualizeWhitespace"/>
<addaction name="separator"/>
<addaction name="menuZoom"/>
+ <addaction name="menuGuesses"/>
<addaction name="separator"/>
<addaction name="menuToolbars"/>
<addaction name="menuViewViews"/>
@@ -926,6 +936,30 @@
<string>Ctrl+0</string>
</property>
</action>
+ <action name="actionShowMoreGuesses">
+ <property name="text">
+ <string>Show more</string>
+ </property>
+ <property name="shortcut">
+ <string>Alt++</string>
+ </property>
+ </action>
+ <action name="actionShowFewerGuesses">
+ <property name="text">
+ <string>Show fewer</string>
+ </property>
+ <property name="shortcut">
+ <string>Alt+-</string>
+ </property>
+ </action>
+ <action name="actionResetGuessesToDefault">
+ <property name="text">
+ <string>Reset to default</string>
+ </property>
+ <property name="shortcut">
+ <string>Alt+0</string>
+ </property>
+ </action>
</widget>
<resources/>
<connections/>