Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_analog_clock.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_analog_clock.cpp
r8127 r9383 53 53 setTotalSteps( 60 ); 54 54 55 const int secondsPerHour = 60.0 * 60.0; 55 const int secondsPerHour = 60.0 * 60.0; 56 56 57 57 QList<double> majorTicks; … … 73 73 74 74 QColor knobColor = palette().color( QPalette::Active, QPalette::Text ); 75 knobColor = knobColor.dark ( 120 );75 knobColor = knobColor.darker( 120 ); 76 76 77 77 QColor handColor; … … 83 83 { 84 84 width = 2; 85 handColor = knobColor.dark ( 120 );85 handColor = knobColor.darker( 120 ); 86 86 } 87 87 else … … 201 201 { 202 202 const double hours = value() / ( 60.0 * 60.0 ); 203 const double minutes = 203 const double minutes = 204 204 ( value() - qFloor(hours) * 60.0 * 60.0 ) / 60.0; 205 205 const double seconds = value() - qFloor(hours) * 60.0 * 60.0 … … 214 214 { 215 215 const double d = 360.0 - angle[hand] - origin(); 216 drawHand( painter, static_cast<Hand>( hand ), 216 drawHand( painter, static_cast<Hand>( hand ), 217 217 center, radius, d, colorGroup ); 218 218 }
Note:
See TracChangeset
for help on using the changeset viewer.