[Gui] modernize some UI connections

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

View File

@@ -954,8 +954,7 @@ void PythonConsole::changeEvent(QEvent *e)
if (e->type() == QEvent::ParentChange) {
auto dw = qobject_cast<QDockWidget*>(this->parentWidget());
if (dw) {
connect(dw, SIGNAL(visibilityChanged(bool)),
this, SLOT(visibilityChanged(bool)));
connect(dw, &QDockWidget::visibilityChanged, this, &PythonConsole::visibilityChanged);
}
}
else if (e->type() == QEvent::StyleChange) {