Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c931806a
Commit
c931806a
authored
Jun 07, 2016
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restoring link change signal.
parent
bd616980
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
LinkConfiguration.cc
src/comm/LinkConfiguration.cc
+4
-1
LinkConfiguration.h
src/comm/LinkConfiguration.h
+2
-1
No files found.
src/comm/LinkConfiguration.cc
View file @
c931806a
...
...
@@ -158,5 +158,8 @@ void LinkConfiguration::setName(const QString name)
void
LinkConfiguration
::
setLink
(
LinkInterface
*
link
)
{
_link
=
link
;
if
(
_link
!=
link
)
{
_link
=
link
;
emit
linkChanged
(
link
);
}
}
src/comm/LinkConfiguration.h
View file @
c931806a
...
...
@@ -28,7 +28,7 @@ public:
virtual
~
LinkConfiguration
()
{}
Q_PROPERTY
(
QString
name
READ
name
WRITE
setName
NOTIFY
nameChanged
)
Q_PROPERTY
(
LinkInterface
*
link
READ
link
WRITE
setLink
)
Q_PROPERTY
(
LinkInterface
*
link
READ
link
WRITE
setLink
NOTIFY
linkChanged
)
Q_PROPERTY
(
LinkType
linkType
READ
type
CONSTANT
)
Q_PROPERTY
(
bool
dynamic
READ
isDynamic
WRITE
setDynamic
NOTIFY
dynamicChanged
)
Q_PROPERTY
(
bool
autoConnect
READ
isAutoConnect
WRITE
setAutoConnect
NOTIFY
autoConnectChanged
)
...
...
@@ -180,6 +180,7 @@ signals:
void
nameChanged
(
const
QString
&
name
);
void
dynamicChanged
();
void
autoConnectChanged
();
void
linkChanged
(
LinkInterface
*
link
);
protected:
LinkInterface
*
_link
;
///< Link currently using this configuration (if any)
...
...
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