Use c++11 style connects for radial map

parent a04a8b58
......@@ -48,9 +48,8 @@ RadialMap::Widget::Widget(QWidget *parent, bool isSummary)
setAcceptDrops(true);
setMinimumSize(350, 250);
connect(this, SIGNAL(folderCreated(const Folder*)), SLOT(sendFakeMouseEvent()));
connect(this, SIGNAL(folderCreated(const Folder*)), SLOT(update()));
connect(&m_timer, SIGNAL(timeout()), SLOT(resizeTimeout()));
connect(this, &Widget::folderCreated, this, &Widget::sendFakeMouseEvent);
connect(&m_timer, &QTimer::timeout, this, &Widget::resizeTimeout);
}
RadialMap::Widget::~Widget()
......@@ -135,6 +134,7 @@ RadialMap::Widget::sendFakeMouseEvent() //slot
{
QMouseEvent me(QEvent::MouseMove, mapFromGlobal(QCursor::pos()), Qt::NoButton, Qt::NoButton, Qt::NoModifier);
QApplication::sendEvent(this, &me);
update();
}
void
......
......@@ -265,7 +265,7 @@ void RadialMap::Widget::mousePressEvent(QMouseEvent *e)
if (userIntention == KMessageBox::Continue) {
KIO::Job *job = KIO::del(url);
connect(job, SIGNAL(finished(KJob*)), this, SLOT(deleteJobFinished(KJob*)));
connect(job, &KJob::finished, this, &RadialMap::Widget::deleteJobFinished);
QApplication::setOverrideCursor(Qt::BusyCursor);
setEnabled(false);
}
......
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