Skip to content

Commit

Permalink
changed to flabels
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno3634-gif committed Aug 26, 2024
1 parent 2963749 commit b093db6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
15 changes: 10 additions & 5 deletions src/voidsterdebugwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ VoidsterdebugWindow::VoidsterdebugWindow(QWidget *parent, QString serialDev)
FLabel* Telemetry_Label = this->findChild<FLabel*>("Telemetry_Label");
ContaRotacoes * ContaRotacoes_Comp = this->findChild<ContaRotacoes*>("contaRotacoes");

QLabel* Accumulator_Voltage_Label = this->findChild<QLabel*>("Accumulator_voltage");
QLabel* Max_cell_temp_label = this->findChild<QLabel*>("cellmax_temp");

FLabel* Accumulator_Voltage_Label = this->findChild<FLabel*>("Accumulator_voltage");
FLabel* Max_cell_temp_label = this->findChild<FLabel*>("cellmax_temp");
FLabel* Min_cell_temp_label = this->findChild<FLabel*>("cell_min_temp");
FLabel* Max_cell_voltage = this->findChild<FLabel*>("cell_voltage_max");
FLabel* Min_cell_voltage = this->findChild<FLabel*>("Cell_voltage_min");



Expand All @@ -74,8 +76,11 @@ VoidsterdebugWindow::VoidsterdebugWindow(QWidget *parent, QString serialDev)
connect(store_ref, &store::socChanged, SOC_Label, (void (FLabel::*)(float, float))&FLabel::setVisual);
//connect(store_ref, &store::batteryTemperatureChanged, )
connect(store_ref, &store::hvChanged,InverterVoltage_Label, (void (FLabel::*)(short, short))&FLabel::setVisual );
connect(store_ref, &store::bat_voltageChanged,Accumulator_Voltage_Label, (void (QLabel::*)(short, short))&FLabel::setText );
connect(store_ref, &store::max_cell_tempChanged,Max_cell_temp_label, (void (QLabel::*)(int, int))&QLabel::setText );
connect(store_ref, &store::bat_voltageChanged,Accumulator_Voltage_Label, (void (FLabel::*)(short, short))&FLabel::setVisual );
connect(store_ref, &store::max_cell_tempChanged,Max_cell_temp_label, (void (FLabel::*)(int, int))&FLabel::setVisual );
connect(store_ref,&store::min_cell_tempChanged,Min_cell_temp_label,(void (FLabel::*)(int, int))&FLabel::setVisual);
connect(store_ref, &store::max_cell_voltageChanged,Max_cell_voltage, (void (FLabel::*)(int, int))&FLabel::setVisual );
connect(store_ref, &store::min_cell_voltageChanged,Min_cell_voltage, (void (FLabel::*)(int, int))&FLabel::setVisual );
//QObject::connect(store_ref,&store::menuChanged,this,&VoidsterdebugWindow::handleValueChanged);

//connect(store_ref, &store::rpmChanged,VcuState_label,(void(FLabel::*)(short,short))&FLabel::setVisual);
Expand Down
12 changes: 6 additions & 6 deletions src/voidsterdebugwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@
<number>1</number>
</property>
<item row="1" column="0">
<widget class="QLabel" name="cell_voltage_min_Prefix">
<widget class="FLabel" name="cell_voltage_min_Prefix">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
Expand All @@ -509,14 +509,14 @@
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="Cell_voltage_min">
<widget class="FLabel" name="Cell_voltage_min">
<property name="text">
<string>0 V</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_5">
<widget class="FLabel" name="label_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
Expand All @@ -529,7 +529,7 @@
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="cell_voltage_max">
<widget class="FLabel" name="cell_voltage_max">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
Expand Down Expand Up @@ -686,7 +686,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="cellmax_temp">
<widget class="FLabel" name="cellmax_temp">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
Expand All @@ -699,7 +699,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="cell_min_temp">
<widget class="FLabel" name="cell_min_temp">
<property name="text">
<string>0 º</string>
</property>
Expand Down

0 comments on commit b093db6

Please sign in to comment.