Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c3a427b9
Commit
c3a427b9
authored
Feb 25, 2016
by
Don Gagne
Browse files
Perf: Move leftPanel to Loader
parent
85557554
Changes
1
Show whitespace changes
Inline
Side-by-side
src/ui/MainWindowInner.qml
View file @
c3a427b9
...
@@ -205,7 +205,7 @@ Item {
...
@@ -205,7 +205,7 @@ Item {
}
}
function
showLeftMenu
()
{
function
showLeftMenu
()
{
if
(
!
leftPanel
.
visible
&&
!
leftPanel
.
item
.
animateShowDialog
.
running
)
{
if
(
!
leftPanel
.
visible
)
{
leftPanel
.
visible
=
true
leftPanel
.
visible
=
true
leftPanel
.
item
.
animateShowDialog
.
start
()
leftPanel
.
item
.
animateShowDialog
.
start
()
}
else
if
(
leftPanel
.
visible
&&
!
leftPanel
.
item
.
animateShowDialog
.
running
)
{
}
else
if
(
leftPanel
.
visible
&&
!
leftPanel
.
item
.
animateShowDialog
.
running
)
{
...
@@ -261,6 +261,8 @@ Item {
...
@@ -261,6 +261,8 @@ Item {
anchors.fill
:
parent
anchors.fill
:
parent
visible
:
false
visible
:
false
z
:
QGroundControl
.
zOrderTopMost
+
100
z
:
QGroundControl
.
zOrderTopMost
+
100
active
:
visible
source
:
"
MainWindowLeftPanel.qml
"
}
}
//-- Main UI
//-- Main UI
...
@@ -276,10 +278,6 @@ Item {
...
@@ -276,10 +278,6 @@ Item {
isBackgroundDark
:
flightView
.
isBackgroundDark
isBackgroundDark
:
flightView
.
isBackgroundDark
z
:
QGroundControl
.
zOrderTopMost
z
:
QGroundControl
.
zOrderTopMost
Component.onCompleted
:
{
leftPanel
.
source
=
"
MainWindowLeftPanel.qml
"
}
onShowSetupView
:
mainWindow
.
showSetupView
()
onShowSetupView
:
mainWindow
.
showSetupView
()
onShowPlanView
:
mainWindow
.
showPlanView
()
onShowPlanView
:
mainWindow
.
showPlanView
()
onShowFlyView
:
mainWindow
.
showFlyView
()
onShowFlyView
:
mainWindow
.
showFlyView
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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