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
3eb9ab13
Commit
3eb9ab13
authored
Jan 15, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent message popup from scrolling map
Also remove concept of “interactive” since it is no longer needed
parent
f9874376
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
16 deletions
+11
-16
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+0
-6
FlightMap.qml
src/FlightMap/FlightMap.qml
+0
-2
MainWindowInner.qml
src/ui/MainWindowInner.qml
+11
-8
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
3eb9ab13
...
@@ -44,7 +44,6 @@ Item {
...
@@ -44,7 +44,6 @@ Item {
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
property
real
availableHeight
:
parent
.
height
property
real
availableHeight
:
parent
.
height
property
bool
interactive
:
true
readonly
property
bool
isBackgroundDark
:
_mainIsMap
?
(
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
)
:
true
readonly
property
bool
isBackgroundDark
:
_mainIsMap
?
(
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
)
:
true
...
@@ -83,11 +82,6 @@ Item {
...
@@ -83,11 +82,6 @@ Item {
FlightDisplayViewController
{
id
:
_controller
}
FlightDisplayViewController
{
id
:
_controller
}
onInteractiveChanged
:
{
if
(
_flightMap
)
_flightMap
.
interactive
=
interactive
}
function
reloadContents
()
{
function
reloadContents
()
{
if
(
_flightVideo
)
{
if
(
_flightVideo
)
{
_flightVideo
.
visible
=
false
_flightVideo
.
visible
=
false
...
...
src/FlightMap/FlightMap.qml
View file @
3eb9ab13
...
@@ -43,7 +43,6 @@ import QGroundControl.Mavlink 1.0
...
@@ -43,7 +43,6 @@ import QGroundControl.Mavlink 1.0
Map
{
Map
{
id
:
_map
id
:
_map
property
bool
interactive
:
true
property
string
mapName
:
'
defaultMap
'
property
string
mapName
:
'
defaultMap
'
property
string
mapType
:
QGroundControl
.
flightMapSettings
.
mapTypeForMapName
(
mapName
)
property
string
mapType
:
QGroundControl
.
flightMapSettings
.
mapTypeForMapName
(
mapName
)
// property alias mapWidgets: controlWidgets
// property alias mapWidgets: controlWidgets
...
@@ -54,7 +53,6 @@ Map {
...
@@ -54,7 +53,6 @@ Map {
zoomLevel
:
18
zoomLevel
:
18
center
:
QGroundControl
.
defaultMapPosition
center
:
QGroundControl
.
defaultMapPosition
gesture.flickDeceleration
:
3000
gesture.flickDeceleration
:
3000
gesture.enabled
:
interactive
gesture.activeGestures
:
MapGestureArea
.
ZoomGesture
|
MapGestureArea
.
PanGesture
|
MapGestureArea
.
FlickGesture
gesture.activeGestures
:
MapGestureArea
.
ZoomGesture
|
MapGestureArea
.
PanGesture
|
MapGestureArea
.
FlickGesture
plugin
:
Plugin
{
name
:
"
QGroundControl
"
}
plugin
:
Plugin
{
name
:
"
QGroundControl
"
}
...
...
src/ui/MainWindowInner.qml
View file @
3eb9ab13
...
@@ -201,7 +201,6 @@ Item {
...
@@ -201,7 +201,6 @@ Item {
}
else
{
}
else
{
criticalMessageText
.
text
=
message
criticalMessageText
.
text
=
message
criticalMmessageArea
.
visible
=
true
criticalMmessageArea
.
visible
=
true
mainWindow
.
setMapInteractive
(
false
)
}
}
}
}
...
@@ -221,10 +220,6 @@ Item {
...
@@ -221,10 +220,6 @@ Item {
}
}
}
}
function
setMapInteractive
(
enabled
)
{
flightView
.
interactive
=
enabled
}
onFormatedMessageChanged
:
{
onFormatedMessageChanged
:
{
if
(
messageArea
.
visible
)
{
if
(
messageArea
.
visible
)
{
messageText
.
append
(
formatedMessage
)
messageText
.
append
(
formatedMessage
)
...
@@ -248,7 +243,6 @@ Item {
...
@@ -248,7 +243,6 @@ Item {
}
}
currentPopUp
=
messageArea
currentPopUp
=
messageArea
messageArea
.
visible
=
true
messageArea
.
visible
=
true
mainWindow
.
setMapInteractive
(
false
)
}
}
function
showPopUp
(
dropItem
,
centerX
)
{
function
showPopUp
(
dropItem
,
centerX
)
{
...
@@ -341,7 +335,6 @@ Item {
...
@@ -341,7 +335,6 @@ Item {
function
close
()
{
function
close
()
{
currentPopUp
=
null
currentPopUp
=
null
messageText
.
text
=
""
messageText
.
text
=
""
mainWindow
.
setMapInteractive
(
true
)
messageArea
.
visible
=
false
messageArea
.
visible
=
false
}
}
...
@@ -405,7 +398,6 @@ Item {
...
@@ -405,7 +398,6 @@ Item {
mainWindow
.
messageQueue
=
[]
mainWindow
.
messageQueue
=
[]
}
else
{
}
else
{
criticalMessageText
.
text
=
""
criticalMessageText
.
text
=
""
mainWindow
.
setMapInteractive
(
true
)
criticalMmessageArea
.
visible
=
false
criticalMmessageArea
.
visible
=
false
}
}
}
}
...
@@ -418,6 +410,15 @@ Item {
...
@@ -418,6 +410,15 @@ Item {
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
anchors.bottomMargin
:
ScreenTools
.
defaultFontPixelHeight
anchors.bottomMargin
:
ScreenTools
.
defaultFontPixelHeight
MouseArea
{
// This MouseArea prevents the Map below it from getting Mouse events. Without this
// things like mousewheel will scroll the Flickable and then scroll the map as well.
anchors.fill
:
parent
preventStealing
:
true
onWheel
:
wheel
.
accepted
=
true
}
Flickable
{
Flickable
{
id
:
criticalMessageFlick
id
:
criticalMessageFlick
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
...
@@ -438,6 +439,7 @@ Item {
...
@@ -438,6 +439,7 @@ Item {
color
:
"
#fdfd3b
"
color
:
"
#fdfd3b
"
}
}
}
}
//-- Dismiss Critical Message
//-- Dismiss Critical Message
Image
{
Image
{
id
:
criticalClose
id
:
criticalClose
...
@@ -457,6 +459,7 @@ Item {
...
@@ -457,6 +459,7 @@ Item {
}
}
}
}
}
}
//-- More text below indicator
//-- More text below indicator
Image
{
Image
{
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
...
...
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