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
@@ -32,7 +32,7 @@ QtLocationPicker::QtLocationPicker(QWidget *parent)
(ResourcePaths::getGuiPath().str() + "window/dots_hover.png").c_str());
m_button->setObjectName("dotsButton");
m_button->setToolTip("pick file");
connect(m_button, SIGNAL(clicked()), this, SLOT(handleButtonPress()));
connect(m_button, &QPushButton::clicked, this, &QtLocationPicker::handleButtonPress);
layout->addWidget(m_button);
setLayout(layout);