Convert to the new signal-slot syntax

This commit is contained in:
Luca Beltrame 2014-10-03 23:17:52 +02:00
parent 55a866dbf3
commit 8e2e9ecbc3
5 changed files with 16 additions and 30 deletions

View file

@ -56,10 +56,8 @@ namespace Danbooru {
// signal-slot connections
connect(m_delegate, SIGNAL(postDownloadRequested(QUrl)), this,
SLOT(slotHandleDownload(QUrl)));
connect(m_delegate, SIGNAL(postViewRequested(QUrl)), this,
SLOT(slotHandleView(QUrl)));
connect(m_delegate, &DanbooruPostDelegate::postDownloadRequested, this, &DanbooruClientView::slotHandleDownload);
connect(m_delegate, &DanbooruPostDelegate::postViewRequested, this, &DanbooruClientView::slotHandleView);
// connect(m_listView, SIGNAL(clicked(const QModelIndex&)), parent(),
// SLOT(displayInfo(const QModelIndex&));