Commit 4baa8ce2 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 2dffe438
......@@ -66,11 +66,11 @@ TransportManagementWidget::TransportManagementWidget(QWidget *parent)
SLOT(updateButtonState()));
connect(d->ui.transportList, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),
SLOT(editClicked()));
connect(d->ui.addButton, SIGNAL(clicked()), SLOT(addClicked()));
connect(d->ui.editButton, SIGNAL(clicked()), SLOT(editClicked()));
connect(d->ui.renameButton, SIGNAL(clicked()), SLOT(renameClicked()));
connect(d->ui.removeButton, SIGNAL(clicked()), SLOT(removeClicked()));
connect(d->ui.defaultButton, SIGNAL(clicked()), SLOT(defaultClicked()));
connect(d->ui.addButton, &QPushButton::clicked, this, [this]() { d->addClicked(); });
connect(d->ui.editButton, &QPushButton::clicked, this, [this]() { d->editClicked(); });
connect(d->ui.renameButton, &QPushButton::clicked, this, [this]() { d->renameClicked(); });
connect(d->ui.removeButton, &QPushButton::clicked, this, [this]() { d->removeClicked(); });
connect(d->ui.defaultButton, &QPushButton::clicked, this, [this]() { d->defaultClicked(); });
connect(d->ui.transportList, SIGNAL(customContextMenuRequested(QPoint)),
SLOT(slotCustomContextMenuRequested(QPoint)));
}
......
......@@ -50,11 +50,6 @@ public:
private:
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void defaultClicked())
Q_PRIVATE_SLOT(d, void removeClicked())
Q_PRIVATE_SLOT(d, void renameClicked())
Q_PRIVATE_SLOT(d, void editClicked())
Q_PRIVATE_SLOT(d, void addClicked())
Q_PRIVATE_SLOT(d, void updateButtonState())
Q_PRIVATE_SLOT(d, void slotCustomContextMenuRequested(const QPoint &))
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment