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
176541d2
Unverified
Commit
176541d2
authored
Feb 21, 2018
by
Gus Grubba
Committed by
GitHub
Feb 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6154 from mavlink/DeadMouseArea
Mouse Bleed Through
parents
299fde42
60fbc492
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
91 additions
and
87 deletions
+91
-87
qgroundcontrol.qrc
qgroundcontrol.qrc
+48
-48
GuidedActionConfirm.qml
src/FlightDisplay/GuidedActionConfirm.qml
+5
-1
GuidedActionList.qml
src/FlightDisplay/GuidedActionList.qml
+5
-1
MultiVehicleList.qml
src/FlightDisplay/MultiVehicleList.qml
+5
-1
PlanToolBar.qml
src/PlanView/PlanToolBar.qml
+2
-5
DeadMouseArea.qml
src/QmlControls/DeadMouseArea.qml
+10
-0
NoMouseThroughRectangle.qml
src/QmlControls/NoMouseThroughRectangle.qml
+0
-14
QGroundControl.Controls.qmldir
src/QmlControls/QGroundControl.Controls.qmldir
+7
-7
ToolStrip.qml
src/QmlControls/ToolStrip.qml
+4
-0
OfflineMap.qml
src/QtLocationPlugin/QMLControl/OfflineMap.qml
+3
-5
MainWindowInner.qml
src/ui/MainWindowInner.qml
+2
-5
No files found.
qgroundcontrol.qrc
View file @
176541d2
This diff is collapsed.
Click to expand it.
src/FlightDisplay/GuidedActionConfirm.qml
View file @
176541d2
...
...
@@ -16,7 +16,7 @@ import QGroundControl.Controls 1.0
import
QGroundControl
.
Palette
1.0
/// Guided actions confirmation dialog
NoMouseThrough
Rectangle
{
Rectangle
{
id
:
_root
border.color
:
qgcPal
.
alertBorder
border.width
:
1
...
...
@@ -48,6 +48,10 @@ NoMouseThroughRectangle {
QGCPalette
{
id
:
qgcPal
}
DeadMouseArea
{
anchors.fill
:
parent
}
Column
{
id
:
confirmColumn
anchors.margins
:
_margins
...
...
src/FlightDisplay/GuidedActionList.qml
View file @
176541d2
...
...
@@ -17,7 +17,7 @@ import QGroundControl.Controls 1.0
import
QGroundControl
.
Palette
1.0
/// Dialog showing list of available guided actions
NoMouseThrough
Rectangle
{
Rectangle
{
id
:
_root
width
:
actionColumn
.
width
+
(
_margins
*
4
)
height
:
actionColumn
.
height
+
(
_margins
*
4
)
...
...
@@ -35,6 +35,10 @@ NoMouseThroughRectangle {
QGCPalette
{
id
:
qgcPal
}
DeadMouseArea
{
anchors.fill
:
parent
}
ColumnLayout
{
id
:
actionColumn
anchors.margins
:
_root
.
_margins
...
...
src/FlightDisplay/MultiVehicleList.qml
View file @
176541d2
...
...
@@ -28,7 +28,7 @@ Item {
QGCPalette
{
id
:
qgcPal
}
NoMouseThrough
Rectangle
{
Rectangle
{
id
:
mvCommands
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
...
...
@@ -37,6 +37,10 @@ Item {
opacity
:
_rectOpacity
radius
:
_margin
DeadMouseArea
{
anchors.fill
:
parent
}
Column
{
id
:
mvCommandsColumn
anchors.margins
:
_margin
...
...
src/PlanView/PlanToolBar.qml
View file @
176541d2
...
...
@@ -84,11 +84,8 @@ Rectangle {
}
//-- Eat mouse events, preventing them from reaching toolbar, which is underneath us.
MouseArea
{
anchors.fill
:
parent
onWheel
:
{
wheel
.
accepted
=
true
;
}
onPressed
:
{
mouse
.
accepted
=
true
;
}
onReleased
:
{
mouse
.
accepted
=
true
;
}
DeadMouseArea
{
anchors.fill
:
parent
}
//-- The reason for this Row to be here is so the Logo (Home) button is in the same
...
...
src/QmlControls/DeadMouseArea.qml
0 → 100644
View file @
176541d2
import
QtQuick
2.3
import
QtQuick
.
Controls
1.2
MouseArea
{
preventStealing
:
true
hoverEnabled
:
true
onWheel
:
{
wheel
.
accepted
=
true
;
}
onPressed
:
{
mouse
.
accepted
=
true
;
}
onReleased
:
{
mouse
.
accepted
=
true
;
}
}
src/QmlControls/NoMouseThroughRectangle.qml
deleted
100644 → 0
View file @
299fde42
import
QtQuick
2.3
import
QtQuick
.
Controls
1.2
/// This control is used to create a Rectangle control which does not allow mouse events to bleed through to the control
/// which is beneath it.
Rectangle
{
MouseArea
{
anchors.fill
:
parent
preventStealing
:
true
onWheel
:
{
wheel
.
accepted
=
true
;
}
onPressed
:
{
mouse
.
accepted
=
true
;
}
onReleased
:
{
mouse
.
accepted
=
true
;
}
}
}
src/QmlControls/QGroundControl.Controls.qmldir
View file @
176541d2
...
...
@@ -5,6 +5,7 @@ AppMessages 1.0 AppMessages.qml
CameraCalc 1.0 CameraCalc.qml
CameraSection 1.0 CameraSection.qml
ClickableColor 1.0 ClickableColor.qml
DeadMouseArea 1.0 DeadMouseArea.qml
DropButton 1.0 DropButton.qml
DropPanel 1.0 DropPanel.qml
EditPositionDialog 1.0 EditPositionDialog.qml
...
...
@@ -27,15 +28,11 @@ MissionItemMapVisual 1.0 MissionItemMapVisual.qml
MissionItemStatus 1.0 MissionItemStatus.qml
ModeSwitchDisplay 1.0 ModeSwitchDisplay.qml
MultiRotorMotorDisplay 1.0 MultiRotorMotorDisplay.qml
NoMouseThroughRectangle 1.0 NoMouseThroughRectangle
.qml
OfflineMapButton 1.0 OfflineMapButton
.qml
PageView 1.0 PageView.qml
ParameterEditor 1.0 ParameterEditor.qml
ParameterEditorDialog 1.0 ParameterEditorDialog.qml
PlanToolBar 1.0 PlanToolBar.qml
RallyPointEditorHeader 1.0 RallyPointEditorHeader.qml
RallyPointItemEditor 1.0 RallyPointItemEditor.qml
RallyPointMapVisuals 1.0 RallyPointMapVisuals.qml
RCChannelMonitor 1.0 RCChannelMonitor.qml
QGCButton 1.0 QGCButton.qml
QGCCheckBox 1.0 QGCCheckBox.qml
QGCColoredImage 1.0 QGCColoredImage.qml
...
...
@@ -45,8 +42,8 @@ QGCFlickable 1.0 QGCFlickable.qml
QGCGroupBox 1.0 QGCGroupBox.qml
QGCLabel 1.0 QGCLabel.qml
QGCListView 1.0 QGCListView.qml
QGCMapLabel 1.0 QGCMapLabel.qml
QGCMapCircleVisuals 1.0 QGCMapCircleVisuals.qml
QGCMapLabel 1.0 QGCMapLabel.qml
QGCMapPolygonVisuals 1.0 QGCMapPolygonVisuals.qml
QGCMapPolylineVisuals 1.0 QGCMapPolylineVisuals.qml
QGCMouseArea 1.0 QGCMouseArea.qml
...
...
@@ -62,6 +59,10 @@ QGCViewDialog 1.0 QGCViewDialog.qml
QGCViewDialogContainer 1.0 QGCViewDialogContainer.qml
QGCViewMessage 1.0 QGCViewMessage.qml
QGCViewPanel 1.0 QGCViewPanel.qml
RallyPointEditorHeader 1.0 RallyPointEditorHeader.qml
RallyPointItemEditor 1.0 RallyPointItemEditor.qml
RallyPointMapVisuals 1.0 RallyPointMapVisuals.qml
RCChannelMonitor 1.0 RCChannelMonitor.qml
RoundButton 1.0 RoundButton.qml
SectionHeader 1.0 SectionHeader.qml
SetupPage 1.0 SetupPage.qml
...
...
@@ -74,4 +75,3 @@ ToolStrip 1.0 ToolStrip.qml
VehicleRotationCal 1.0 VehicleRotationCal.qml
VehicleSummaryRow 1.0 VehicleSummaryRow.qml
ViewWidget 1.0 ViewWidget.qml
OfflineMapButton 1.0 OfflineMapButton.qml
src/QmlControls/ToolStrip.qml
View file @
176541d2
...
...
@@ -52,6 +52,10 @@ Rectangle {
}
}
DeadMouseArea
{
anchors.fill
:
parent
}
Column
{
id
:
buttonStripColumn
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
/
2
...
...
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
176541d2
...
...
@@ -654,11 +654,9 @@ QGCView {
color
:
Qt
.
rgba
(
qgcPal
.
window
.
r
,
qgcPal
.
window
.
g
,
qgcPal
.
window
.
b
,
0.85
)
radius
:
ScreenTools
.
defaultFontPixelWidth
*
0.5
MouseArea
{
anchors.fill
:
parent
onWheel
:
{
wheel
.
accepted
=
true
;
}
onPressed
:
{
mouse
.
accepted
=
true
;
}
onReleased
:
{
mouse
.
accepted
=
true
;
}
//-- Eat mouse events
DeadMouseArea
{
anchors.fill
:
parent
}
QGCLabel
{
...
...
src/ui/MainWindowInner.qml
View file @
176541d2
...
...
@@ -296,13 +296,10 @@ Item {
onVtolTransitionToMRFlight
:
flightView
.
guidedController
.
confirmAction
(
flightView
.
guidedController
.
actionVtolTransitionToMRFlight
)
//-- Entire tool bar area disable on cammand
MouseArea
{
Dead
MouseArea
{
id
:
toolbarBlocker
anchors.fill
:
parent
enabled
:
false
onWheel
:
{
wheel
.
accepted
=
true
;
}
onPressed
:
{
mouse
.
accepted
=
true
;
}
onReleased
:
{
mouse
.
accepted
=
true
;
}
anchors.fill
:
parent
}
}
...
...
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