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
402b380b
Commit
402b380b
authored
Nov 29, 2015
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding thumbstick bezel
parent
285ac2ba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
qgcresources.qrc
qgcresources.qrc
+9
-7
JoystickBezel.png
resources/JoystickBezel.png
+0
-0
JoystickBezelLight.png
resources/JoystickBezelLight.png
+0
-0
JoystickThumbPad.qml
src/QmlControls/JoystickThumbPad.qml
+6
-8
No files found.
qgcresources.qrc
View file @
402b380b
...
...
@@ -101,16 +101,18 @@
</qresource>
<qresource prefix="/res">
<file alias="Play">resources/Play.svg</file>
<file alias="Pause">resources/Pause.svg</file>
<file alias="Stop">resources/Stop.svg</file>
<file alias="AntennaT">resources/Antenna_T.svg</file>
<file alias="AntennaRC">resources/Antenna_RC.svg</file>
<file alias="SplashScreen">resources/SplashScreen.png</file>
<file alias="QGroundControlConnect">resources/QGroundControlConnect.svg</file>
<file alias="PowerButton">resources/PowerButton.svg</file>
<file alias="AntennaT">resources/Antenna_T.svg</file>
<file alias="buttonLeft.svg">resources/buttonLeft.svg</file>
<file alias="buttonRight.svg">resources/buttonRight.svg</file>
<file alias="JoystickBezel.png">resources/JoystickBezel.png</file>
<file alias="JoystickBezelLight.png">resources/JoystickBezelLight.png</file>
<file alias="Pause">resources/Pause.svg</file>
<file alias="Play">resources/Play.svg</file>
<file alias="PowerButton">resources/PowerButton.svg</file>
<file alias="QGroundControlConnect">resources/QGroundControlConnect.svg</file>
<file alias="SplashScreen">resources/SplashScreen.png</file>
<file alias="Stop">resources/Stop.svg</file>
<file alias="XDelete.svg">resources/XDelete.svg</file>
<file alias="XDeleteBlack.svg">resources/XDeleteBlack.svg</file>
</qresource>
...
...
resources/JoystickBezel.png
0 → 100644
View file @
402b380b
22.4 KB
resources/JoystickBezelLight.png
0 → 100644
View file @
402b380b
21.7 KB
src/QmlControls/JoystickThumbPad.qml
View file @
402b380b
...
...
@@ -4,12 +4,8 @@ import QtQuick.Controls 1.2
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
ScreenTools
1.0
Rectangle
{
Item
{
id
:
_joyRoot
radius
:
width
/
2
border.color
:
mapPal
.
thumbJoystick
border.width
:
ScreenTools
.
defaultFontPixelWidth
*
0.25
color
:
"
transparent
"
property
alias
lightColors
:
mapPal
.
lightColors
/// true: use light colors from QGCMapPalette for drawing
property
var
stickPosition
:
Qt
.
point
(
0
,
0
)
...
...
@@ -47,9 +43,11 @@ Rectangle {
stickPosition
=
Qt
.
point
(
width
/
2
,
width
/
2
)
}
Column
{
QGCLabel
{
text
:
xAxis
}
QGCLabel
{
text
:
yAxis
}
Image
{
anchors.fill
:
parent
source
:
lightColors
?
"
/res/JoystickBezel.png
"
:
"
/res/JoystickBezelLight.png
"
mipmap
:
true
smooth
:
true
}
Rectangle
{
...
...
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