rename 'manage highlighting' to 'highlighters'
This commit is contained in:
@@ -154,20 +154,20 @@ class InnerBigText(QWidget):
|
||||
def _open_menu(self, position):
|
||||
menu = QMenu(self)
|
||||
|
||||
copy_clipboard = QAction(self.tr("Copy to Clipboard"), self, triggered=self.copy_selection)
|
||||
copy_clipboard = QAction(self.tr("&Copy to Clipboard"), self, triggered=self.copy_selection)
|
||||
copy_clipboard.setShortcut("CTRL+C")
|
||||
copy_clipboard.setDisabled(not self._has_selection())
|
||||
menu.addAction(copy_clipboard)
|
||||
|
||||
copy_to_file = QAction(self.tr("Copy to File"), self, triggered=self._copy_selection_to_file)
|
||||
copy_to_file = QAction(self.tr("Copy to &File"), self, triggered=self._copy_selection_to_file)
|
||||
copy_to_file.setDisabled(not self._has_selection())
|
||||
menu.addAction(copy_to_file)
|
||||
|
||||
manage_highlighting = QAction(
|
||||
self.tr("Highlighting"),
|
||||
self.tr("&Highlighter"),
|
||||
self,
|
||||
triggered=lambda: HighlightingDialog(self.model.settings).exec())
|
||||
manage_highlighting.setShortcut("CTRL+M")
|
||||
manage_highlighting.setShortcut("CTRL+H")
|
||||
menu.addAction(manage_highlighting)
|
||||
|
||||
menu.exec(self.mapToGlobal(position))
|
||||
|
||||
6
main.py
6
main.py
@@ -71,9 +71,9 @@ class MainWindow(QMainWindow):
|
||||
return file_menu
|
||||
|
||||
def highlight_menu(self) -> QMenu:
|
||||
result = QMenu(self.tr("&Highlighting"), self)
|
||||
manage = QAction(self.tr("&Manage"), self)
|
||||
manage.setShortcut('Ctrl+M')
|
||||
result = QMenu(self.tr("&View"), self)
|
||||
manage = QAction(self.tr("&Highlighter"), self)
|
||||
manage.setShortcut('Ctrl+H')
|
||||
manage.triggered.connect(lambda: HighlightingDialog(self.settings).exec())
|
||||
result.addAction(manage)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user