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
ecc63cf1
Commit
ecc63cf1
authored
Mar 11, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some control width problems
parent
0d7fd3ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
PX4SimpleFlightModes.qml
src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml
+6
-3
MainWindowLeftPanel.qml
src/ui/MainWindowLeftPanel.qml
+1
-1
No files found.
src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml
View file @
ecc63cf1
...
...
@@ -40,6 +40,9 @@ Item {
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
readonly
property
real
_flightModeComboWidth
:
ScreenTools
.
defaultFontPixelWidth
*
23
readonly
property
real
_channelComboWidth
:
ScreenTools
.
defaultFontPixelWidth
*
20
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
panel
.
enabled
}
PX4SimpleFlightModesController
{
...
...
@@ -95,7 +98,7 @@ Item {
FactComboBox
{
id
:
modeChannelCombo
width
:
ScreenTools
.
defaultFontPixelWidth
*
15
width
:
_channelComboWidth
fact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_FLTMODE
"
)
indexModel
:
false
}
...
...
@@ -117,7 +120,7 @@ Item {
FactComboBox
{
id
:
modeCombo
width
:
ScreenTools
.
defaultFontPixelWidth
*
20
width
:
_flightModeComboWidth
fact
:
controller
.
getParameterFact
(
-
1
,
"
COM_FLTMODE
"
+
index
)
indexModel
:
false
}
...
...
@@ -163,7 +166,7 @@ Item {
FactComboBox
{
id
:
optCombo
width
:
ScreenTools
.
defaultFontPixelWidth
*
15
width
:
_channelComboWidth
fact
:
parent
.
fact
indexModel
:
false
}
...
...
src/ui/MainWindowLeftPanel.qml
View file @
ecc63cf1
...
...
@@ -130,7 +130,7 @@ Item {
// This is the menu dialog panel which is anchored to the left edge
Rectangle
{
id
:
__leftMenu
width
:
ScreenTools
.
defaultFontPixelWidth
*
1
2
width
:
ScreenTools
.
defaultFontPixelWidth
*
1
4
anchors.left
:
parent
.
left
anchors.top
:
__topSeparator
.
bottom
anchors.bottom
:
parent
.
bottom
...
...
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