Gui: move to new style connect()

This commit is contained in:
wmayer
2023-02-01 11:58:00 +01:00
committed by wwmayer
parent 25a63f8750
commit 2e5cb03261
43 changed files with 237 additions and 246 deletions

View File

@@ -2635,7 +2635,7 @@ void View3DInventorViewer::moveCameraTo(const SbRotation& rot, const SbVec3f& po
anim.setEndValue(steps);
QEventLoop loop;
QObject::connect(&anim, SIGNAL(finished()), &loop, SLOT(quit()));
QObject::connect(&anim, &CameraAnimation::finished, &loop, &QEventLoop::quit);
anim.start();
loop.exec(QEventLoop::ExcludeUserInputEvents);
@@ -2693,7 +2693,7 @@ void View3DInventorViewer::animatedViewAll(int steps, int ms)
QEventLoop loop;
QTimer timer;
timer.setSingleShot(true);
QObject::connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
QObject::connect(&timer, &QTimer::timeout, &loop, &QEventLoop::quit);
for (int i=0; i<steps; i++) {
float s = float(i)/float(steps);