Skip to content

Commit c945991

Browse files
committed
copy/paste_value() -> _copy/_paste_value()
1 parent 74eb110 commit c945991

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

picard/ui/metadatabox.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,13 @@ def edit(self, index, trigger, event):
303303

304304
def keyPressEvent(self, event):
305305
if event.matches(QtGui.QKeySequence.StandardKey.Copy):
306-
self.copy_value()
306+
self._copy_value()
307307
elif event.matches(QtGui.QKeySequence.StandardKey.Paste):
308-
self.paste_value()
308+
self._paste_value()
309309
else:
310310
super().keyPressEvent(event)
311311

312-
def copy_value(self):
312+
def _copy_value(self):
313313
item = self.currentItem()
314314
if item:
315315
column = item.column()
@@ -325,7 +325,7 @@ def copy_value(self):
325325
self.tagger.clipboard().setText(MULTI_VALUED_JOINER.join(value))
326326
self.clipboard = value
327327

328-
def paste_value(self):
328+
def _paste_value(self):
329329
item = self.currentItem()
330330
if item:
331331
column = item.column()
@@ -434,11 +434,11 @@ def contextMenuEvent(self, event):
434434
if single_tag:
435435
menu.addSeparator()
436436
copy_action = QtGui.QAction(icontheme.lookup('edit-copy', icontheme.ICON_SIZE_MENU), _("&Copy"), self)
437-
copy_action.triggered.connect(self.copy_value)
437+
copy_action.triggered.connect(self._copy_value)
438438
copy_action.setShortcut(QtGui.QKeySequence.StandardKey.Copy)
439439
menu.addAction(copy_action)
440440
paste_action = QtGui.QAction(icontheme.lookup('edit-paste', icontheme.ICON_SIZE_MENU), _("&Paste"), self)
441-
paste_action.triggered.connect(self.paste_value)
441+
paste_action.triggered.connect(self._paste_value)
442442
paste_action.setShortcut(QtGui.QKeySequence.StandardKey.Paste)
443443
paste_action.setEnabled(editable)
444444
menu.addAction(paste_action)

0 commit comments

Comments
 (0)