Skip to content

Commit

Permalink
Edited columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Imeguras committed Aug 30, 2024
1 parent 0d5859b commit 5c1c22b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
17 changes: 16 additions & 1 deletion src/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@
</property>
<item>
<widget class="QProgressBar" name="PowerLimitBar">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="font">
<font>
<family>Fira Mono</family>
Expand Down Expand Up @@ -373,13 +379,22 @@
</property>
<item>
<widget class="QProgressBar" name="SOCLimitBar">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="font">
<font>
<family>Fira Mono</family>
<pointsize>24</pointsize>
<bold>true</bold>
</font>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="value">
<number>24</number>
</property>
Expand Down Expand Up @@ -536,7 +551,7 @@
</font>
</property>
<property name="text">
<string>kW/h</string>
<string>kW</string>
</property>
</widget>
</item>
Expand Down
22 changes: 4 additions & 18 deletions src/store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,28 +370,14 @@ void store::parseBson(std::vector<std::uint8_t> v){
switch(t)
{
case 0:
MainWindow* temp_ref;
//Verify if position 0 is empty
if(ref_windows[0] == nullptr){
//store currently displayed window
MainWindow temp;
temp_ref = &temp;

ref_windows[0] = temp_ref;

}else{
temp_ref = ref_windows[0];


}
temp_ref->show();
break;

case 1:
VoidsterdebugWindow* temp_ref;
QMainWindow* temp_ref;
if(ref_windows[1] == nullptr){
VoidsterdebugWindow temp;
temp_ref = &temp;
ref_windows[1] = temp_ref;
temp_ref = &temp;
ref_windows[1] = temp_ref;
}else{
temp_ref = ref_windows[1];
}
Expand Down

0 comments on commit 5c1c22b

Please sign in to comment.