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
56494c6b
Commit
56494c6b
authored
Nov 09, 2015
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Token change to force a rebuild.
parent
38c177fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
52 deletions
+52
-52
ViewWidget.qml
src/ViewWidgets/ViewWidget.qml
+52
-52
No files found.
src/ViewWidgets/ViewWidget.qml
View file @
56494c6b
import
QtQuick
2.
2
import
QtQuick
2.
5
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
.
Styles
1.2
import
QtQuick
.
Controls
.
Styles
1.2
...
@@ -6,78 +6,78 @@ import QGroundControl.Palette 1.0
...
@@ -6,78 +6,78 @@ import QGroundControl.Palette 1.0
import
QGroundControl
.
Controllers
1.0
import
QGroundControl
.
Controllers
1.0
Rectangle
{
Rectangle
{
property
Component
connectedComponent
:
__componentConnected
property
Component
connectedComponent
:
__componentConnected
property
Component
disconnectedComponent
:
__componentDisconnected
property
Component
disconnectedComponent
:
__componentDisconnected
QGCPalette
{
id
:
__qgcPal
;
colorGroupEnabled
:
enabled
}
QGCPalette
{
id
:
__qgcPal
;
colorGroupEnabled
:
enabled
}
ViewWidgetController
{
id
:
__controller
}
ViewWidgetController
{
id
:
__controller
}
color
:
__qgcPal
.
window
color
:
__qgcPal
.
window
Component.onCompleted
:
__controller
.
checkForVehicle
()
Component.onCompleted
:
__controller
.
checkForVehicle
()
Connections
{
Connections
{
target
:
__controller
target
:
__controller
onPluginConnected
:
{
onPluginConnected
:
{
pageLoader
.
autopilot
=
autopilot
pageLoader
.
autopilot
=
autopilot
pageLoader
.
sourceComponent
=
connectedComponent
pageLoader
.
sourceComponent
=
connectedComponent
}
}
onPluginDisconnected
:
{
onPluginDisconnected
:
{
pageLoader
.
sourceComponent
=
null
pageLoader
.
sourceComponent
=
null
pageLoader
.
sourceComponent
=
disconnectedComponent
pageLoader
.
sourceComponent
=
disconnectedComponent
pageLoader
.
autopilot
=
null
pageLoader
.
autopilot
=
null
}
}
}
}
Loader
{
Loader
{
id
:
pageLoader
id
:
pageLoader
anchors.fill
:
parent
anchors.fill
:
parent
property
var
autopilot
property
var
autopilot
sourceComponent
:
__componentDisconnected
sourceComponent
:
__componentDisconnected
}
}
Component
{
Component
{
id
:
__componentConnected
id
:
__componentConnected
Rectangle
{
Rectangle
{
QGCPalette
{
id
:
__qgcPal
;
colorGroupEnabled
:
enabled
}
QGCPalette
{
id
:
__qgcPal
;
colorGroupEnabled
:
enabled
}
anchors.fill
:
parent
anchors.fill
:
parent
color
:
__qgcPal
.
window
color
:
__qgcPal
.
window
QGCLabel
{
QGCLabel
{
anchors.fill
:
parent
anchors.fill
:
parent
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignVCenter
text
:
"
missing connected implementation
"
text
:
"
missing connected implementation
"
}
}
}
}
}
}
Component
{
Component
{
id
:
__componentDisconnected
id
:
__componentDisconnected
Rectangle
{
Rectangle
{
QGCPalette
{
id
:
__qgcPal
;
colorGroupEnabled
:
enabled
}
QGCPalette
{
id
:
__qgcPal
;
colorGroupEnabled
:
enabled
}
anchors.fill
:
parent
anchors.fill
:
parent
color
:
__qgcPal
.
window
color
:
__qgcPal
.
window
QGCLabel
{
QGCLabel
{
anchors.fill
:
parent
anchors.fill
:
parent
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignVCenter
text
:
"
no vehicle connected
"
text
:
"
no vehicle connected
"
}
}
}
}
}
}
}
}
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