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
7b8f0a14
Commit
7b8f0a14
authored
Jun 07, 2016
by
Gus Grubba
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3505 from dogmaphobic/restoreSignal
Restoring link change signal.
parents
5e64dccc
c931806a
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 @
7b8f0a14
...
@@ -158,5 +158,8 @@ void LinkConfiguration::setName(const QString name)
...
@@ -158,5 +158,8 @@ void LinkConfiguration::setName(const QString name)
void
LinkConfiguration
::
setLink
(
LinkInterface
*
link
)
void
LinkConfiguration
::
setLink
(
LinkInterface
*
link
)
{
{
_link
=
link
;
if
(
_link
!=
link
)
{
_link
=
link
;
emit
linkChanged
(
link
);
}
}
}
src/comm/LinkConfiguration.h
View file @
7b8f0a14
...
@@ -28,7 +28,7 @@ public:
...
@@ -28,7 +28,7 @@ public:
virtual
~
LinkConfiguration
()
{}
virtual
~
LinkConfiguration
()
{}
Q_PROPERTY
(
QString
name
READ
name
WRITE
setName
NOTIFY
nameChanged
)
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
(
LinkType
linkType
READ
type
CONSTANT
)
Q_PROPERTY
(
bool
dynamic
READ
isDynamic
WRITE
setDynamic
NOTIFY
dynamicChanged
)
Q_PROPERTY
(
bool
dynamic
READ
isDynamic
WRITE
setDynamic
NOTIFY
dynamicChanged
)
Q_PROPERTY
(
bool
autoConnect
READ
isAutoConnect
WRITE
setAutoConnect
NOTIFY
autoConnectChanged
)
Q_PROPERTY
(
bool
autoConnect
READ
isAutoConnect
WRITE
setAutoConnect
NOTIFY
autoConnectChanged
)
...
@@ -180,6 +180,7 @@ signals:
...
@@ -180,6 +180,7 @@ signals:
void
nameChanged
(
const
QString
&
name
);
void
nameChanged
(
const
QString
&
name
);
void
dynamicChanged
();
void
dynamicChanged
();
void
autoConnectChanged
();
void
autoConnectChanged
();
void
linkChanged
(
LinkInterface
*
link
);
protected:
protected:
LinkInterface
*
_link
;
///< Link currently using this configuration (if any)
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