- connect(_bufferWidget, SIGNAL(currentChanged(QModelIndex)),
- QtUi::toolBarActionProvider(), SLOT(currentBufferChanged(QModelIndex)));
- connect(_nickListWidget, SIGNAL(nickSelectionChanged(QModelIndexList)),
- QtUi::toolBarActionProvider(), SLOT(nickSelectionChanged(QModelIndexList)));
+ connect(_bufferWidget, selectOverload<const QModelIndex&>(&AbstractBufferContainer::currentChanged),
+ QtUi::toolBarActionProvider(), &ToolBarActionProvider::onCurrentBufferChanged);
+ connect(_nickListWidget, &NickListWidget::nickSelectionChanged,
+ QtUi::toolBarActionProvider(), &ToolBarActionProvider::onNickSelectionChanged);