Commit 2f2d929e authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 291ad85e
......@@ -49,7 +49,7 @@ DisplayIntro::DisplayIntro(Deck* deck, QGraphicsScene* theScene, ThemeManager* t
scene()->setBackgroundBrush(QColor(0,0,128));
mTimer = new QTimer(this);
connect(mTimer, SIGNAL(timeout()), this, SLOT(loop()));
connect(mTimer, &QTimer::timeout, this, &DisplayIntro::loop);
mTimer->stop();
// Redraw
......
......@@ -42,7 +42,7 @@ EngineTwo::EngineTwo(QWidget* parent, Deck* deck, DisplayTwo* display)
mDeck = deck;
mCurrentPlayer = 0;
connect(mDisplay, SIGNAL(dealingDone()), this, SLOT(gameLoopStart()));
connect(mDisplay, &DisplayTwo::dealingDone, this, &EngineTwo::gameLoopStart);
}
......
......@@ -91,8 +91,7 @@ void KCardWidget::setupGUI()
insertCardIcons();
// Connect signals
connect(ui->list, SIGNAL(itemSelectionChanged()),
this, SLOT(updateSelection()));
connect(ui->list, &QListWidget::itemSelectionChanged, this, &KCardWidget::updateSelection);
}
......
......@@ -73,7 +73,7 @@ GameView::GameView(const QSize &size, int advancePeriod, QGraphicsScene* scene,
// Update/advance in [ms]
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(updateAndAdvance()));
connect(timer, &QTimer::timeout, this, &GameView::updateAndAdvance);
timer->start(advancePeriod);
// Set size and position of the view and the canvas:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment