Beispiel #1
0
void FolderWatcher::changeDetected(const QString& f)
{
    if( ! eventsEnabled() ) {
        // qDebug() << "FolderWatcher::changeDetected when eventsEnabled() -> ignore";
        return;
    }

    _pendingPathes[f] = 1; //_pendingPathes[path]+mask;
    setProcessTimer();
}
Beispiel #2
0
//------------------------------------------------------------------------------
//!
void
ValueEditor::value( float val, bool update )
{
   // Set the value to be in the range.
   val = CGM::clamp( val, _minValue, _maxValue );

   // Convert to integer.
   if( _integer ) val = CGM::round( val );

   if( val == _value ) return;

   _value = val;

   if( update && eventsEnabled() )
   {
      _onModify.exec( _value );
      execute( _onModifyRef, this, _value );
   }

   updateLook();
}