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
223cdc40
Commit
223cdc40
authored
Aug 14, 2017
by
Jacob Walser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework FirmwareUpgrade.qml to be a child of SetupPage
parent
f11f006b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
347 additions
and
350 deletions
+347
-350
FirmwareUpgrade.qml
src/VehicleSetup/FirmwareUpgrade.qml
+347
-350
No files found.
src/VehicleSetup/FirmwareUpgrade.qml
View file @
223cdc40
...
...
@@ -12,6 +12,7 @@ import QtQuick 2.3
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
.
Styles
1.4
import
QtQuick
.
Dialogs
1.2
import
QtQuick
.
Layouts
1.3
import
QGroundControl
1.0
import
QGroundControl
.
Controls
1.0
...
...
@@ -22,15 +23,24 @@ import QGroundControl.Controllers 1.0
import
QGroundControl
.
ScreenTools
1.0
SetupPage
{
id
:
qgcView
viewPanel
:
panel
id
:
firmwarePage
pageComponent
:
firmwarePageComponent
pageName
:
"
Firmware
"
// For building setup page title: 'Firmware Setup'
Component
{
id
:
firmwarePageComponent
ColumnLayout
{
width
:
availableWidth
height
:
availableHeight
spacing
:
ScreenTools
.
defaultFontPixelHeight
// Those user visible strings are hard to translate because we can't send the
// HTML strings to translation as this can create a security risk. we need to find
// a better way to hightlight them, or use less hight
lights.
// a better way to hightlight them, or use less high
lights.
// User visible strings
pageName
:
"
Firmware
"
readonly
property
string
title
:
"
Firmware Setup
"
// Popup dialog title
readonly
property
string
highlightPrefix
:
"
<font color=
\"
"
+
qgcPal
.
warningText
+
"
\"
>
"
readonly
property
string
highlightSuffix
:
"
</font>
"
...
...
@@ -118,7 +128,7 @@ SetupPage {
}
}
onCompleted
:
{
Component.
onCompleted
:
{
if
(
controllerCompleted
)
{
// We can only start the board search when the Qml and Controller are completely done loading
controller
.
startBoardSearch
()
...
...
@@ -387,29 +397,15 @@ SetupPage {
}
}
QGCViewPanel
{
id
:
panel
anchors.fill
:
parent
QGCLabel
{
id
:
titleLabel
text
:
title
font.pointSize
:
ScreenTools
.
mediumFontPointSize
}
ProgressBar
{
id
:
progressBar
anchors.topMargin
:
ScreenTools
.
defaultFontPixelHeight
anchors.top
:
titleLabel
.
bottom
width
:
parent
.
width
Layout.preferredWidth
:
parent
.
width
}
TextArea
{
id
:
statusTextArea
anchors.topMargin
:
ScreenTools
.
defaultFontPixelHeight
anchors.top
:
progressBar
.
bottom
anchors.bottom
:
parent
.
bottom
width
:
parent
.
width
Layout.preferredWidth
:
parent
.
width
Layout.fillHeight
:
true
readOnly
:
true
frameVisible
:
false
font.pointSize
:
ScreenTools
.
defaultFontPointSize
...
...
@@ -421,5 +417,6 @@ SetupPage {
backgroundColor
:
qgcPal
.
windowShade
}
}
}
// QGCViewPabel
}
// QGCView
}
// ColumnLayout
}
// Component
}
// SetupPage
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