mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
update obsolote activated() signals
This commit is contained in:
parent
4884d0edf7
commit
058f19b18d
2 changed files with 4 additions and 4 deletions
|
@ -1116,9 +1116,9 @@ class EditorWebView(AnkiWebView):
|
|||
def contextMenuEvent(self, evt):
|
||||
m = QMenu(self)
|
||||
a = m.addAction(_("Cut"))
|
||||
a.connect(a, SIGNAL("activated()"), self.onCut)
|
||||
a.connect(a, SIGNAL("triggered()"), self.onCut)
|
||||
a = m.addAction(_("Copy"))
|
||||
a.connect(a, SIGNAL("activated()"), self.onCopy)
|
||||
a.connect(a, SIGNAL("triggered()"), self.onCopy)
|
||||
a = m.addAction(_("Paste"))
|
||||
a.connect(a, SIGNAL("activated()"), self.onPaste)
|
||||
a.connect(a, SIGNAL("triggered()"), self.onPaste)
|
||||
m.popup(QCursor.pos())
|
||||
|
|
|
@ -84,7 +84,7 @@ class AnkiWebView(QWebView):
|
|||
return
|
||||
m = QMenu(self)
|
||||
a = m.addAction(_("Copy"))
|
||||
a.connect(a, SIGNAL("activated()"),
|
||||
a.connect(a, SIGNAL("triggered()"),
|
||||
lambda: self.triggerPageAction(QWebPage.Copy))
|
||||
m.popup(QCursor.pos())
|
||||
|
||||
|
|
Loading…
Reference in a new issue