mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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):
|
def contextMenuEvent(self, evt):
|
||||||
m = QMenu(self)
|
m = QMenu(self)
|
||||||
a = m.addAction(_("Cut"))
|
a = m.addAction(_("Cut"))
|
||||||
a.connect(a, SIGNAL("activated()"), self.onCut)
|
a.connect(a, SIGNAL("triggered()"), self.onCut)
|
||||||
a = m.addAction(_("Copy"))
|
a = m.addAction(_("Copy"))
|
||||||
a.connect(a, SIGNAL("activated()"), self.onCopy)
|
a.connect(a, SIGNAL("triggered()"), self.onCopy)
|
||||||
a = m.addAction(_("Paste"))
|
a = m.addAction(_("Paste"))
|
||||||
a.connect(a, SIGNAL("activated()"), self.onPaste)
|
a.connect(a, SIGNAL("triggered()"), self.onPaste)
|
||||||
m.popup(QCursor.pos())
|
m.popup(QCursor.pos())
|
||||||
|
|
|
@ -84,7 +84,7 @@ class AnkiWebView(QWebView):
|
||||||
return
|
return
|
||||||
m = QMenu(self)
|
m = QMenu(self)
|
||||||
a = m.addAction(_("Copy"))
|
a = m.addAction(_("Copy"))
|
||||||
a.connect(a, SIGNAL("activated()"),
|
a.connect(a, SIGNAL("triggered()"),
|
||||||
lambda: self.triggerPageAction(QWebPage.Copy))
|
lambda: self.triggerPageAction(QWebPage.Copy))
|
||||||
m.popup(QCursor.pos())
|
m.popup(QCursor.pos())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue