diff options
Diffstat (limited to 'examples/opengl/textures/window.cpp')
-rw-r--r-- | examples/opengl/textures/window.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/opengl/textures/window.cpp b/examples/opengl/textures/window.cpp index e9ad8e2cc6..fddb9f9945 100644 --- a/examples/opengl/textures/window.cpp +++ b/examples/opengl/textures/window.cpp @@ -59,8 +59,8 @@ Window::Window() glWidgets[i][j]->rotateBy(+42 * 16, +42 * 16, -21 * 16); mainLayout->addWidget(glWidgets[i][j], i, j); - connect(glWidgets[i][j], SIGNAL(clicked()), - this, SLOT(setCurrentGlWidget())); + connect(glWidgets[i][j], &GLWidget::clicked, + this, &Window::setCurrentGlWidget); } } setLayout(mainLayout); @@ -68,7 +68,7 @@ Window::Window() currentGlWidget = glWidgets[0][0]; QTimer *timer = new QTimer(this); - connect(timer, SIGNAL(timeout()), this, SLOT(rotateOneStep())); + connect(timer, &QTimer::timeout, this, &Window::rotateOneStep); timer->start(20); setWindowTitle(tr("Textures")); |