Changeset 78
- Timestamp:
- 06/30/09 11:58:28 (15 years ago)
- Location:
- trigger/gui/t72
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trigger/gui/t72
-
Property svn:ignore
set to
t72
-
Property svn:ignore
set to
-
trigger/gui/t72/main.cpp
r77 r78 358 358 QString output = "Setting temperature of sensor "+stri + " to " + list1[i]+"c\n"; 359 359 SocketOutput->insertPlainText(output); 360 tempsens[ListToTemperaturePixel[i]]->setValue(( int)(temperature[i]));360 tempsens[ListToTemperaturePixel[i]]->setValue((float)(temperature[i])); 361 361 } 362 362 temperature[7]= list1[7].toFloat(); -
trigger/gui/t72/tempsens.cpp
r77 r78 20 20 void Tempsens::paintEvent( QPaintEvent * ) 21 21 { 22 QString s = QString( "%1c" ).arg((double)(val)); 22 23 QString s = QString( "%1c" ).arg((double)(val),0,'g',3); 23 24 QFont sansFont( "Helvetica [Cronyx]", 12 ); 24 25 … … 28 29 int width=this->width(); 29 30 int height=this->height(); 30 p.drawText(width/ 3, height/2, s );31 p.drawText(width/4 , height/2, s ); 31 32 } 32 33
Note:
See TracChangeset
for help on using the changeset viewer.