Commit 047d1e76 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 1d89480e
...@@ -60,7 +60,7 @@ Core::Core(QWidget *parent, Qt::WindowFlags f) ...@@ -60,7 +60,7 @@ Core::Core(QWidget *parent, Qt::WindowFlags f)
: KParts::MainWindow(parent, f), d(new Private(this)) : KParts::MainWindow(parent, f), d(new Private(this))
{ {
QTimer *timer = new QTimer(this); QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), SLOT(checkNewDay())); connect(timer, &QTimer::timeout, this, [this]() { d->checkNewDay(); });
timer->start(1000 * 60); timer->start(1000 * 60);
} }
......
...@@ -113,7 +113,6 @@ private: ...@@ -113,7 +113,6 @@ private:
Private *const d; Private *const d;
Q_PRIVATE_SLOT(d, void slotPartDestroyed(QObject *)) Q_PRIVATE_SLOT(d, void slotPartDestroyed(QObject *))
Q_PRIVATE_SLOT(d, void checkNewDay())
//@endcond //@endcond
}; };
......
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