Convert to the new signal-slot syntax

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

View file

@ -74,10 +74,8 @@ namespace Danbooru {
// Signal-slot connections
connect(m_viewButton, SIGNAL(clicked()), this,
SLOT(viewButtonClicked()));
connect(m_downloadButton, SIGNAL(clicked()), this,
SLOT(downloadButtonClicked()));
connect(m_viewButton, &QPushButton::clicked, this, &DanbooruPostDelegate::viewButtonClicked);
connect(m_downloadButton, &QPushButton::clicked, this, &DanbooruPostDelegate::downloadButtonClicked);
}