diff options
author | Arno <arno@disconnect.de> | 2017-03-24 18:18:49 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-03-24 18:18:49 +0100 |
commit | a55b7eb7a765f09f0e83e9d3ce5696f540b6bd9b (patch) | |
tree | 2f331faf9fb16130494482c212df76bb5180e8d7 /indexerdialog.cpp | |
parent | c4388dcc1830d5df4f04ec2df42d1359b68cbda3 (diff) | |
download | BeetPlayer-a55b7eb7a765f09f0e83e9d3ce5696f540b6bd9b.tar.gz BeetPlayer-a55b7eb7a765f09f0e83e9d3ce5696f540b6bd9b.tar.bz2 BeetPlayer-a55b7eb7a765f09f0e83e9d3ce5696f540b6bd9b.zip |
Change to new style connect syntax
Quite some code churn, but I like the idea that wrong connections are
compile time errors.
Since I had to get rid of default arguments in Slots, this simplified
things in doPopulateByFolder...
Diffstat (limited to 'indexerdialog.cpp')
-rw-r--r-- | indexerdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexerdialog.cpp b/indexerdialog.cpp index 0722bad..c9e6ca3 100644 --- a/indexerdialog.cpp +++ b/indexerdialog.cpp @@ -12,9 +12,9 @@ IndexerDialog::IndexerDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(paren //buttons QPushButton *startB = new QPushButton(tr("Start")); - connect(startB, SIGNAL(clicked()), mIndexer, SLOT(startIndexing())); + connect(startB, &QPushButton::clicked, mIndexer, &IndexerWidget::startIndexing); QPushButton *stopB = new QPushButton(tr("Stop")); - connect(stopB, SIGNAL(clicked()), mIndexer, SLOT(stopIndexing())); + connect(stopB, &QPushButton::clicked, mIndexer, &IndexerWidget::stopIndexing); QHBoxLayout *buttonLayout = new QHBoxLayout; buttonLayout->addStretch(); buttonLayout->addWidget(startB); |