[Gui] modernize some UI connections

This commit is contained in:
Uwe
2023-01-31 05:25:13 +01:00
committed by wwmayer
parent f9cdaaf3d9
commit 5c03db60e0
8 changed files with 22 additions and 25 deletions

View File

@@ -78,10 +78,8 @@ PythonEditor::PythonEditor(QWidget* parent)
auto uncomment = new QShortcut(this);
uncomment->setKey(QKeySequence(QString::fromLatin1("ALT+U")));
connect(comment, SIGNAL(activated()),
this, SLOT(onComment()));
connect(uncomment, SIGNAL(activated()),
this, SLOT(onUncomment()));
connect(comment, &QShortcut::activated, this, &PythonEditor::onComment);
connect(uncomment, &QShortcut::activated, this, &PythonEditor::onUncomment);
}
/** Destroys the object and frees any allocated resources */