Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KInfoCenter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
KInfoCenter
Commits
f50befcb
Commit
f50befcb
authored
Oct 23, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port to new connect api
parent
653900d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Modules/devinfo/devicelisting.cpp
Modules/devinfo/devicelisting.cpp
+4
-4
sidepanel.cpp
sidepanel.cpp
+2
-2
No files found.
Modules/devinfo/devicelisting.cpp
View file @
f50befcb
...
...
@@ -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."
));
...
...
sidepanel.cpp
View file @
f50befcb
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment