mirror of
https://github.com/opentx/opentx.git
synced 2025-07-12 19:10:19 +03:00
Companion
This commit is contained in:
parent
24667b6fb6
commit
cbd3499528
3 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,8 @@ class TimerData {
|
|||
COUNTDOWN_SILENT,
|
||||
COUNTDOWN_BEEPS,
|
||||
COUNTDOWN_VOICE,
|
||||
COUNTDOWN_HAPTIC
|
||||
COUNTDOWN_HAPTIC,
|
||||
COUNTDOWN_HAPTIC_VOICE
|
||||
};
|
||||
TimerData() { clear(); }
|
||||
RawSwitch mode;
|
||||
|
|
|
@ -66,6 +66,7 @@ TimerPanel::TimerPanel(QWidget *parent, ModelData & model, TimerData & timer, Ge
|
|||
ui->countdownBeep->addItem(tr("Beeps"), TimerData::COUNTDOWN_BEEPS);
|
||||
ui->countdownBeep->addItem(tr("Voice"), TimerData::COUNTDOWN_VOICE);
|
||||
ui->countdownBeep->addItem(tr("Haptic"), TimerData::COUNTDOWN_HAPTIC);
|
||||
ui->countdownBeep->addItem(tr("Haptic & Voice"), TimerData::COUNTDOWN_HAPTIC_VOICE);
|
||||
|
||||
ui->value->setMaximumTime(firmware->getMaxTimerStart());
|
||||
|
||||
|
|
|
@ -949,6 +949,8 @@ QString ModelPrinter::printTimerCountdownBeep(unsigned int countdownBeep)
|
|||
return tr("Voice");
|
||||
case TimerData::COUNTDOWN_HAPTIC:
|
||||
return tr("Haptic");
|
||||
case TimerData::COUNTDOWN_HAPTIC_VOICE:
|
||||
return tr("Haptic & Voice");
|
||||
default:
|
||||
return CPN_STR_UNKNOWN_ITEM;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue