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
235b3d6f
Commit
235b3d6f
authored
Dec 29, 2017
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
File path doesn't overflow
parent
cb724342
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+22
-17
No files found.
src/ui/preferences/GeneralSettings.qml
View file @
235b3d6f
...
...
@@ -41,6 +41,9 @@ QGCView {
property
real
_editFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
30
property
Fact
_mapProvider
:
QGroundControl
.
settingsManager
.
flightMapSettings
.
mapProvider
property
Fact
_mapType
:
QGroundControl
.
settingsManager
.
flightMapSettings
.
mapType
property
real
_panelWidth
:
_qgcView
.
width
*
_internalWidthRatio
readonly
property
real
_internalWidthRatio
:
0.8
readonly
property
string
_requiresRestart
:
qsTr
(
"
(Requires Restart)
"
)
...
...
@@ -63,7 +66,7 @@ QGCView {
//-----------------------------------------------------------------
//-- Units
Item
{
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
height
:
unitLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -76,7 +79,7 @@ QGCView {
}
Rectangle
{
height
:
unitsCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -115,7 +118,7 @@ QGCView {
//-----------------------------------------------------------------
//-- Miscellaneous
Item
{
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
height
:
miscLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -128,7 +131,7 @@ QGCView {
}
Rectangle
{
height
:
miscCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -359,7 +362,7 @@ QGCView {
//-----------------------------------------------------------------
//-- Save path
Row
{
Row
Layout
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_savePath
.
visible
&&
!
ScreenTools
.
isMobile
...
...
@@ -368,8 +371,10 @@ QGCView {
text
:
qsTr
(
"
File Save Path:
"
)
}
QGCLabel
{
anchors.baseline
:
savePathBrowse
.
baseline
text
:
_savePath
.
rawValue
===
""
?
qsTr
(
"
<not set>
"
)
:
_savePath
.
value
anchors.baseline
:
savePathBrowse
.
baseline
Layout.maximumWidth
:
_panelWidth
*
0.5
elide
:
Text
.
ElideMiddle
text
:
_savePath
.
rawValue
===
""
?
qsTr
(
"
<not set>
"
)
:
_savePath
.
value
}
QGCButton
{
id
:
savePathBrowse
...
...
@@ -394,7 +399,7 @@ QGCView {
//-----------------------------------------------------------------
//-- RTK GPS
Item
{
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
height
:
unitLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -407,7 +412,7 @@ QGCView {
}
Rectangle
{
height
:
rtkGrid
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -438,7 +443,7 @@ QGCView {
//-----------------------------------------------------------------
//-- Autoconnect settings
Item
{
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
height
:
autoConnectLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -451,7 +456,7 @@ QGCView {
}
Rectangle
{
height
:
autoConnectCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -490,7 +495,7 @@ QGCView {
//-----------------------------------------------------------------
//-- Video Source
Item
{
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
height
:
videoLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -503,7 +508,7 @@ QGCView {
}
Rectangle
{
height
:
videoCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -605,7 +610,7 @@ QGCView {
//-----------------------------------------------------------------
//-- Video Source
Item
{
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
height
:
videoRecLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -618,7 +623,7 @@ QGCView {
}
Rectangle
{
height
:
videoRecCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -676,7 +681,7 @@ QGCView {
//-----------------------------------------------------------------
//-- Custom Brand Image
Item
{
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
height
:
userBrandImageLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -689,7 +694,7 @@ QGCView {
}
Rectangle
{
height
:
userBrandImageCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_
qgcView
.
width
*
0.8
width
:
_
panelWidth
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
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