Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void DoubleSpinBox::updateSuffix ( double  value  )  [protected]

Updates the suffix using m_unit and value.

Definition at line 112 of file doublespinbox.cpp.

References Item::getNumberMag(), m_queuedSuffix, and setQueuedSuffix().

Referenced by mapTextToValue(), setUnit(), and setValue().

{
      m_queuedSuffix = " " + CNItem::getNumberMag( value ) + m_unit;
      
      // Set suffix to be empty if it is nothing but white space
      if ( m_queuedSuffix.stripWhiteSpace().isEmpty() )
            m_queuedSuffix = "";
      
      QTimer::singleShot( 0, this, SLOT(setQueuedSuffix()) );
}


Generated by  Doxygen 1.6.0   Back to index