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
8fb3acd0
Commit
8fb3acd0
authored
Mar 06, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Page not loading correctly
- Fix imports to support 5.7 - Move properties to correct location
parent
ed23fc5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
PowerComponent.qml
src/AutoPilotPlugins/PX4/PowerComponent.qml
+13
-14
QGCGroupBox.qml
src/QmlControls/QGCGroupBox.qml
+3
-3
No files found.
src/AutoPilotPlugins/PX4/PowerComponent.qml
View file @
8fb3acd0
...
@@ -29,25 +29,24 @@ SetupPage {
...
@@ -29,25 +29,24 @@ SetupPage {
width
:
Math
.
max
(
availableWidth
,
innerColumn
.
width
)
width
:
Math
.
max
(
availableWidth
,
innerColumn
.
width
)
height
:
innerColumn
.
height
height
:
innerColumn
.
height
property
int
textEditWidth
:
ScreenTools
.
defaultFontPixelWidth
*
8
property
Fact
battNumCells
:
controller
.
getParameterFact
(
-
1
,
"
BAT_N_CELLS
"
)
property
Fact
battHighVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT_V_CHARGED
"
)
property
Fact
battLowVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT_V_EMPTY
"
)
property
Fact
battVoltLoadDrop
:
controller
.
getParameterFact
(
-
1
,
"
BAT_V_LOAD_DROP
"
)
property
Fact
battVoltageDivider
:
controller
.
getParameterFact
(
-
1
,
"
BAT_V_DIV
"
)
property
Fact
battAmpsPerVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT_A_PER_V
"
)
property
Fact
uavcanEnable
:
controller
.
getParameterFact
(
-
1
,
"
UAVCAN_ENABLE
"
,
false
)
readonly
property
string
highlightPrefix
:
"
<font color=
\"
"
+
qgcPal
.
warningText
+
"
\"
>
"
readonly
property
string
highlightSuffix
:
"
</font>
"
ColumnLayout
{
ColumnLayout
{
id
:
innerColumn
id
:
innerColumn
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
spacing
:
ScreenTools
.
defaultFontPixelHeight
spacing
:
ScreenTools
.
defaultFontPixelHeight
property
int
textEditWidth
:
ScreenTools
.
defaultFontPixelWidth
*
8
property
Fact
battNumCells
:
controller
.
getParameterFact
(
-
1
,
"
BAT_N_CELLS
"
)
property
Fact
battHighVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT_V_CHARGED
"
)
property
Fact
battLowVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT_V_EMPTY
"
)
property
Fact
battVoltLoadDrop
:
controller
.
getParameterFact
(
-
1
,
"
BAT_V_LOAD_DROP
"
)
property
Fact
battVoltageDivider
:
controller
.
getParameterFact
(
-
1
,
"
BAT_V_DIV
"
)
property
Fact
battAmpsPerVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT_A_PER_V
"
)
property
Fact
uavcanEnable
:
controller
.
getParameterFact
(
-
1
,
"
UAVCAN_ENABLE
"
,
false
)
readonly
property
string
highlightPrefix
:
"
<font color=
\"
"
+
qgcPal
.
warningText
+
"
\"
>
"
readonly
property
string
highlightSuffix
:
"
</font>
"
function
getBatteryImage
()
function
getBatteryImage
()
{
{
switch
(
battNumCells
.
value
)
{
switch
(
battNumCells
.
value
)
{
...
...
src/QmlControls/QGCGroupBox.qml
View file @
8fb3acd0
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
*
*
****************************************************************************/
****************************************************************************/
import
QtQuick
2.3
import
QtQuick
2.3
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
2.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
ScreenTools
1.0
GroupBox
{
GroupBox
{
id
:
control
id
:
control
...
...
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