mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
parent
ecf5a64424
commit
b761f7b0e9
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ class RadioSwitchWidget : public RadioWidget
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit RadioSwitchWidget(Board::SwitchType type, const QString & labelText, int value = 0, QWidget * parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags()) :
|
explicit RadioSwitchWidget(Board::SwitchType type, const QString & labelText, int value = -1, QWidget * parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags()) :
|
||||||
RadioWidget(labelText, value, parent, f),
|
RadioWidget(labelText, value, parent, f),
|
||||||
swType(type)
|
swType(type)
|
||||||
{
|
{
|
||||||
|
@ -127,7 +127,7 @@ class RadioSwitchWidget : public RadioWidget
|
||||||
|
|
||||||
void resetToggle()
|
void resetToggle()
|
||||||
{
|
{
|
||||||
setValue(0);
|
setValue(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue