Skip to content

Commit

Permalink
Update keyboard shortcuts
Browse files Browse the repository at this point in the history
- Execute Project is Shift+F9
- Execute Selected is F9
- Stop is F10

Re #2887
  • Loading branch information
ptsavol committed Oct 7, 2024
1 parent 87b6a13 commit 205fd4d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions spinetoolbox/ui/jump_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################
## Form generated from reading UI file 'jump_properties.ui'
##
## Created by: Qt User Interface Compiler version 6.5.2
## Created by: Qt User Interface Compiler version 6.7.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand Down Expand Up @@ -54,7 +54,7 @@ def setupUi(self, Form):

self.comboBox_tool_spec = QComboBox(self.groupBox_condition)
self.comboBox_tool_spec.setObjectName(u"comboBox_tool_spec")
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
sizePolicy = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.comboBox_tool_spec.sizePolicy().hasHeightForWidth())
Expand All @@ -65,7 +65,7 @@ def setupUi(self, Form):
self.toolButton_edit_tool_spec = QToolButton(self.groupBox_condition)
self.toolButton_edit_tool_spec.setObjectName(u"toolButton_edit_tool_spec")
icon = QIcon()
icon.addFile(u":/icons/wrench.svg", QSize(), QIcon.Normal, QIcon.Off)
icon.addFile(u":/icons/wrench.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
self.toolButton_edit_tool_spec.setIcon(icon)

self.horizontalLayout_2.addWidget(self.toolButton_edit_tool_spec)
Expand All @@ -85,7 +85,7 @@ def setupUi(self, Form):

self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

self.horizontalLayout_3.addItem(self.horizontalSpacer_3)

Expand All @@ -107,19 +107,19 @@ def setupUi(self, Form):
self.toolButton_add_arg = QToolButton(Form)
self.toolButton_add_arg.setObjectName(u"toolButton_add_arg")
icon1 = QIcon()
icon1.addFile(u":/icons/file-upload.svg", QSize(), QIcon.Normal, QIcon.Off)
icon1.addFile(u":/icons/file-upload.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
self.toolButton_add_arg.setIcon(icon1)

self.horizontalLayout.addWidget(self.toolButton_add_arg)

self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

self.horizontalLayout.addItem(self.horizontalSpacer_2)

self.toolButton_remove_arg = QToolButton(Form)
self.toolButton_remove_arg.setObjectName(u"toolButton_remove_arg")
icon2 = QIcon()
icon2.addFile(u":/icons/minus.svg", QSize(), QIcon.Normal, QIcon.Off)
icon2.addFile(u":/icons/minus.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
self.toolButton_remove_arg.setIcon(icon2)

self.horizontalLayout.addWidget(self.toolButton_remove_arg)
Expand Down
2 changes: 1 addition & 1 deletion spinetoolbox/ui/link_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################
## Form generated from reading UI file 'link_properties.ui'
##
## Created by: Qt User Interface Compiler version 6.7.1
## Created by: Qt User Interface Compiler version 6.7.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand Down
6 changes: 3 additions & 3 deletions spinetoolbox/ui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,21 +583,21 @@ def retranslateUi(self, MainWindow):
self.actionExecute_project.setToolTip(QCoreApplication.translate("MainWindow", u"Execute all items in project.", None))
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(shortcut)
self.actionExecute_project.setShortcut(QCoreApplication.translate("MainWindow", u"F5", None))
self.actionExecute_project.setShortcut(QCoreApplication.translate("MainWindow", u"Shift+F9", None))
#endif // QT_CONFIG(shortcut)
self.actionExecute_selection.setText(QCoreApplication.translate("MainWindow", u"Selection", None))
#if QT_CONFIG(tooltip)
self.actionExecute_selection.setToolTip(QCoreApplication.translate("MainWindow", u"Execute selected items.", None))
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(shortcut)
self.actionExecute_selection.setShortcut(QCoreApplication.translate("MainWindow", u"F6", None))
self.actionExecute_selection.setShortcut(QCoreApplication.translate("MainWindow", u"F9", None))
#endif // QT_CONFIG(shortcut)
self.actionStop_execution.setText(QCoreApplication.translate("MainWindow", u"Stop", None))
#if QT_CONFIG(tooltip)
self.actionStop_execution.setToolTip(QCoreApplication.translate("MainWindow", u"Stop execution.", None))
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(shortcut)
self.actionStop_execution.setShortcut(QCoreApplication.translate("MainWindow", u"F7", None))
self.actionStop_execution.setShortcut(QCoreApplication.translate("MainWindow", u"F10", None))
#endif // QT_CONFIG(shortcut)
self.actionTake_link.setText(QCoreApplication.translate("MainWindow", u"Take link", None))
#if QT_CONFIG(tooltip)
Expand Down
6 changes: 3 additions & 3 deletions spinetoolbox/ui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@
<string>Execute all items in project.</string>
</property>
<property name="shortcut">
<string>F5</string>
<string>Shift+F9</string>
</property>
</action>
<action name="actionExecute_selection">
Expand All @@ -830,7 +830,7 @@
<string>Execute selected items.</string>
</property>
<property name="shortcut">
<string>F6</string>
<string>F9</string>
</property>
</action>
<action name="actionStop_execution">
Expand All @@ -845,7 +845,7 @@
<string>Stop execution.</string>
</property>
<property name="shortcut">
<string>F7</string>
<string>F10</string>
</property>
</action>
<action name="actionTake_link">
Expand Down

0 comments on commit 205fd4d

Please sign in to comment.