Skip to content

Commit

Permalink
Use Qt 5-style connect function.
Browse files Browse the repository at this point in the history
  • Loading branch information
rryan committed Feb 11, 2019
1 parent 98bd81e commit 05f5fb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/widget/wspinny.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ WSpinny::WSpinny(QWidget* parent, const QString& group,
setAttribute(Qt::WA_NoSystemBackground);
setAttribute(Qt::WA_OpaquePaintEvent);

connect(this, SIGNAL(aboutToCompose()), this, SLOT(slotAboutToCompose()));
connect(this, SIGNAL(frameSwapped()), this, SLOT(slotFrameSwapped()));
connect(this, &QOpenGLWidget::aboutToCompose,
this, &WSpinny::slotAboutToCompose);
connect(this, &QOpenGLWidget::frameSwapped,
this, &WSpinny::slotFrameSwapped);
}

WSpinny::~WSpinny() {
Expand Down

0 comments on commit 05f5fb2

Please sign in to comment.