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
@@ -27,7 +27,7 @@ QtBookmarkCategory::QtBookmarkCategory()
m_expandButton->setIconSize(QSize(8, 8));
layout->addWidget(m_expandButton);
connect(m_expandButton, SIGNAL(clicked()), this, SLOT(expandClicked()));
connect(m_expandButton, &QPushButton::clicked, this, &QtBookmarkCategory::expandClicked);
m_name = new QLabel();
m_name->setObjectName("category_name");
@@ -45,7 +45,7 @@ QtBookmarkCategory::QtBookmarkCategory()
m_deleteButton->hide();
layout->addWidget(m_deleteButton);
connect(m_deleteButton, SIGNAL(clicked()), this, SLOT(deleteClicked()));
connect(m_deleteButton, &QPushButton::clicked, this, &QtBookmarkCategory::deleteClicked);
}
QtBookmarkCategory::~QtBookmarkCategory()