Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
02942885
Unverified
Commit
02942885
authored
Feb 20, 2019
by
Gus Grubba
Committed by
GitHub
Feb 20, 2019
Browse files
Merge pull request #7244 from mavlink/checkBoxUpdate
Check box update
parents
b91e9897
1ef90d09
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/QGCApplication.cc
View file @
02942885
...
...
@@ -181,6 +181,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
#if defined (__macos__)
locale
=
QLocale
(
locale
.
name
());
#endif
qDebug
()
<<
"System reported locale:"
<<
locale
<<
locale
.
name
();
//-- Our localization
if
(
_QGCTranslator
.
load
(
locale
,
"qgc_"
,
""
,
":/localization"
))
_app
->
installTranslator
(
&
_QGCTranslator
);
...
...
src/QmlControls/QGCCheckBox.qml
View file @
02942885
...
...
@@ -36,14 +36,14 @@ CheckBox {
implicitHeight
:
implicitWidth
Rectangle
{
anchors.fill
:
parent
color
:
_qgcPal
.
window
border.color
:
_
qgcPal
.
text
color
:
"
white
"
border.color
:
qgcPal
.
text
border.width
:
1
opacity
:
control
.
checkedState
===
Qt
.
PartiallyChecked
?
0.5
:
1
QGCColoredImage
{
source
:
"
/qmlimages/checkbox-check.svg
"
color
:
_qgcPal
.
text
opacity
:
control
.
checkedState
===
Qt
.
Checked
?
control
.
enabled
?
1
:
0.5
:
0
color
:
"
black
"
opacity
:
control
.
checkedState
===
Qt
.
Checked
?
(
control
.
enabled
?
1
:
0.5
)
:
0
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
width
:
parent
.
width
*
0.75
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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