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
29efb185
Commit
29efb185
authored
May 29, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose viewPanel property
parent
fb31a815
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
QGCView.qml
src/QmlControls/QGCView.qml
+6
-5
No files found.
src/QmlControls/QGCView.qml
View file @
29efb185
...
...
@@ -40,6 +40,7 @@ FactPanel {
property
bool
__completedSignalled
:
false
property
Component
viewComponent
property
var
viewPanel
:
__viewPanelLoader
.
item
/// This is signalled when the top level Item reaches Component.onCompleted. This allows
/// the view subcomponent to connect to this signal and do work once the full ui is ready
...
...
@@ -123,7 +124,7 @@ FactPanel {
__setupDialogButtons
(
buttons
)
__dialogComponent
=
component
__viewPanel
.
enabled
=
false
__viewPanel
Loader
.
enabled
=
false
__dialogOverlay
.
visible
=
true
__animateShowDialog
.
start
()
...
...
@@ -139,14 +140,14 @@ FactPanel {
__setupDialogButtons
(
buttons
)
__dialogComponent
=
__messageDialog
__viewPanel
.
enabled
=
false
__viewPanel
Loader
.
enabled
=
false
__dialogOverlay
.
visible
=
true
__animateShowDialog
.
start
()
}
function
hideDialog
()
{
__viewPanel
.
enabled
=
true
__viewPanel
Loader
.
enabled
=
true
__animateHideDialog
.
start
()
}
...
...
@@ -181,7 +182,7 @@ FactPanel {
onHeightChanged
:
__signalCompleted
()
Connections
{
target
:
__viewPanel
.
item
target
:
__viewPanel
Loader
.
item
onShowDialog
:
__rootItem
.
showDialog
(
component
,
title
,
charWidth
,
buttons
)
onShowMessage
:
__rootItem
.
showMessage
(
title
,
message
,
buttons
)
...
...
@@ -195,7 +196,7 @@ FactPanel {
}
Loader
{
id
:
__viewPanel
id
:
__viewPanel
Loader
anchors.fill
:
parent
focus
:
true
sourceComponent
:
viewComponent
...
...
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