Gui: replace slots with member function pointers
This commit is contained in:
@@ -150,8 +150,8 @@ void PythonEditor::contextMenuEvent ( QContextMenuEvent * e )
|
||||
QMenu* menu = createStandardContextMenu();
|
||||
if (!isReadOnly()) {
|
||||
menu->addSeparator();
|
||||
menu->addAction( tr("Comment"), this, SLOT( onComment() ), QKeySequence(QString::fromLatin1("ALT+C")));
|
||||
menu->addAction( tr("Uncomment"), this, SLOT( onUncomment() ), QKeySequence(QString::fromLatin1("ALT+U")));
|
||||
menu->addAction( tr("Comment"), this, &PythonEditor::onComment, QKeySequence(QString::fromLatin1("ALT+C")));
|
||||
menu->addAction( tr("Uncomment"), this, &PythonEditor::onUncomment, QKeySequence(QString::fromLatin1("ALT+U")));
|
||||
}
|
||||
|
||||
menu->exec(e->globalPos());
|
||||
|
||||
Reference in New Issue
Block a user