Commit f50befcb authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 653900d2
......@@ -36,12 +36,12 @@ DeviceListing::DeviceListing(QWidget *parent, InfoPanel *info, DevInfoPlugin *st
connect(this, &DeviceListing::itemActivated, this, &DeviceListing::itemActivatedSlot);
// Check if item is added
connect(Solid::DeviceNotifier::instance(), SIGNAL(deviceAdded(QString)), this,
SLOT(deviceAddedSlot(QString)));
connect(Solid::DeviceNotifier::instance(), &Solid::DeviceNotifier::deviceAdded, this,
&DeviceListing::deviceAddedSlot);
// Check if item is removed
connect(Solid::DeviceNotifier::instance(), SIGNAL(deviceRemoved(QString)), this,
SLOT(deviceRemovedSlot(QString)));
connect(Solid::DeviceNotifier::instance(), &Solid::DeviceNotifier::deviceRemoved, this,
&DeviceListing::deviceRemovedSlot);
setWhatsThis(i18nc("Device Listing Whats This",
"Shows all the devices that are currently listed."));
......
......@@ -47,13 +47,13 @@ SidePanel::SidePanel(QWidget *parent)
setMouseTracking(true);
setModel(m_proxyModel);
connect(this,SIGNAL(activated(QModelIndex)),this,SLOT(clickedSlot(QModelIndex)));
connect(this,&QAbstractItemView::activated,this,&SidePanel::clickedSlot);
connect(this,SIGNAL(clicked(QModelIndex)),this,SLOT(clickedSlot(QModelIndex)));
}
SidePanel::~SidePanel()
{
disconnect(this,SIGNAL(activated(QModelIndex)),this,SLOT(clickedSlot(QModelIndex)));
disconnect(this,&QAbstractItemView::activated,this,&SidePanel::clickedSlot);
disconnect(this,SIGNAL(clicked(QModelIndex)),this,SLOT(clickedSlot(QModelIndex)));
delete m_proxyModel;
......
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