src: new signal slot syntax

SLOT()/SIGNAL() -> &class::method()
This commit is contained in:
Andreas Stallinger
2017-08-01 12:35:33 +02:00
parent 8d68203727
commit 244c9af3c6
47 changed files with 242 additions and 232 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ QtProgressBar::QtProgressBar(QWidget* parent)
, m_pixmap((ResourcePaths::getGuiPath().str() + "indexing_dialog/progress_bar_element.png").c_str())
{
m_timer = new QTimer(this);
connect(m_timer, SIGNAL(timeout()), this, SLOT(animate()));
connect(m_timer, &QTimer::timeout, this, &QtProgressBar::animate);
m_pixmap.scaleToHeight(20);
}