summaryrefslogtreecommitdiffstats
path: root/examples/opengl/2dpainting/window.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-08-28 15:16:57 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-09-02 10:21:56 +0000
commitc726bc85da3921c6a31d4f7d014ddd8b8d7a3f88 (patch)
treeed9cef6e31acb5881a77473e4f12a90b3c9ea426 /examples/opengl/2dpainting/window.cpp
parent4b340402b97b83790b3d71a8244a246eec4f8abd (diff)
Port examples/opengl to new connection syntax.
Change-Id: I486a4a2326bf57ec5ea08bccdcef79c3e5553db5 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'examples/opengl/2dpainting/window.cpp')
-rw-r--r--examples/opengl/2dpainting/window.cpp4
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]