1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

OP-1660 Display limits for every FlightMode position on Flightmode channel

This commit is contained in:
Laurent Lalanne 2014-12-26 22:45:15 +01:00
parent 59e461f6ce
commit 02903e7858
8 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,11 @@
<RCC>
<qresource prefix="/configgadget">
<file>images/flightmode_bg1.png</file>
<file>images/flightmode_bg2.png</file>
<file>images/flightmode_bg3.png</file>
<file>images/flightmode_bg4.png</file>
<file>images/flightmode_bg5.png</file>
<file>images/flightmode_bg6.png</file>
<file>images/help2.png</file>
<file>images/ahrs-calib.svg</file>
<file>images/multirotor-shapes.svg</file>

View File

@ -1536,6 +1536,26 @@ void ConfigInputWidget::updatePositionSlider()
default:
break;
}
QString fmNumber = QString().setNum(manualSettingsDataPriv.FlightModeNumber);
int count = 0;
foreach(QSlider * sp, findChildren<QSlider *>()) {
// Find FlightMode slider and apply stylesheet
if (sp->objectName() == "channelNeutral") {
if (count == 4) {
sp->setStyleSheet(
"QSlider::groove:horizontal {border: 2px solid rgb(196, 196, 196); height: 20px; margin 9px 9px; border-radius: 4px; "
"border-image:url(:/configgadget/images/flightmode_bg" + fmNumber + ".png); }"
"QSlider::add-page:horizontal { background: none; border: none; }"
"QSlider::sub-page:horizontal { background: none; border: none; }"
"QSlider::handle:horizontal { background: rgba(196, 196, 196, 255); width: 10px; height: 28px; "
"margin: -4px -4px; border-radius: 3px; border: 1px solid #777; }");
count++;
} else {
count++;
}
}
}
}
void ConfigInputWidget::updateCalibration()

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB