Qt warnings removed
This commit is contained in:
@@ -498,9 +498,8 @@ void Curves::resizeEvent(QResizeEvent *event)
|
|||||||
ModelPanel::resizeEvent(event);
|
ModelPanel::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Curves::on_curveType_currentIndexChanged()
|
void Curves::on_curveType_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
int index = ui->curveType->currentIndex();
|
|
||||||
unsigned int flags = templates[index].flags;
|
unsigned int flags = templates[index].flags;
|
||||||
ui->curveCoeffLabel->setVisible(flags & CURVE_COEFF_ENABLE);
|
ui->curveCoeffLabel->setVisible(flags & CURVE_COEFF_ENABLE);
|
||||||
ui->curveCoeff->setVisible(flags & CURVE_COEFF_ENABLE);
|
ui->curveCoeff->setVisible(flags & CURVE_COEFF_ENABLE);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class Curves : public ModelPanel
|
|||||||
void onNodeMoved(int x, int y);
|
void onNodeMoved(int x, int y);
|
||||||
void onNodeFocus();
|
void onNodeFocus();
|
||||||
void onNodeUnfocus();
|
void onNodeUnfocus();
|
||||||
void on_curveType_currentIndexChanged();
|
void on_curveType_currentIndexChanged(int index);
|
||||||
void on_curveApply_clicked();
|
void on_curveApply_clicked();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -696,10 +696,10 @@ void TelemetrySensorPanel::on_unit_currentIndexChanged(int index)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TelemetrySensorPanel::on_prec_valueChanged()
|
void TelemetrySensorPanel::on_prec_valueChanged(double value)
|
||||||
{
|
{
|
||||||
if (!lock) {
|
if (!lock) {
|
||||||
sensor.prec = ui->prec->value();
|
sensor.prec = value;
|
||||||
emit dataModified();
|
emit dataModified();
|
||||||
emit modified();
|
emit modified();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class TelemetrySensorPanel: public ModelPanel
|
|||||||
void on_type_currentIndexChanged(int index);
|
void on_type_currentIndexChanged(int index);
|
||||||
void on_formula_currentIndexChanged(int index);
|
void on_formula_currentIndexChanged(int index);
|
||||||
void on_unit_currentIndexChanged(int index);
|
void on_unit_currentIndexChanged(int index);
|
||||||
void on_prec_valueChanged();
|
void on_prec_valueChanged(double value);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void updateSourcesComboBox(AutoComboBox * cb, bool negative);
|
void updateSourcesComboBox(AutoComboBox * cb, bool negative);
|
||||||
|
|||||||
Reference in New Issue
Block a user