diff options
Diffstat (limited to 'examples/opengl/2dpainting/window.cpp')
-rw-r--r-- | examples/opengl/2dpainting/window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/opengl/2dpainting/window.cpp b/examples/opengl/2dpainting/window.cpp index e10d862607..4734026dfb 100644 --- a/examples/opengl/2dpainting/window.cpp +++ b/examples/opengl/2dpainting/window.cpp @@ -66,8 +66,8 @@ Window::Window() setLayout(layout); QTimer *timer = new QTimer(this); - connect(timer, SIGNAL(timeout()), native, SLOT(animate())); - connect(timer, SIGNAL(timeout()), openGL, SLOT(animate())); + connect(timer, &QTimer::timeout, native, &Widget::animate); + connect(timer, &QTimer::timeout, openGL, &GLWidget::animate); timer->start(50); } //! [0] |