rem: qDebug( "key is disabled" );
add: kdDebug() << "key is disabled" << endl;
context: static bool checkKeyUsage( const GpgME::Key & key, unsigned int keyUsage ) {  if ( keyUsage & Kleo::KeySelectionDialog::ValidKeys ) {    if ( key.isInvalid() )      qDebug( "key is invalid - ignoring" );    if ( key.isExpired() ) {      qDebug( "key is expired" );      return false;    } else if ( key.isRevoked() ) {      qDebug( "key is revoked" );      return false;    } else if ( key.isDisabled() ) {      qDebug( "key is disabled" );      return false;    }  }  if ( keyUsage & Kleo::KeySelectionDialog::EncryptionKeys &&       !key.canEncrypt() ) {    qDebug( "key can't encrypt" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::SigningKeys &&       !key.canSign() ) {    qDebug( "key can't sign" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::CertificationKeys &&       !key.canCertify() ) {    qDebug( "key can't certify" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::AuthenticationKeys &&       !key.canAuthenticate() ) {    qDebug( "key can't authenticate" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::SecretKeys &&       !( keyUsage & Kleo::KeySelectionDialog::PublicKeys ) &&       !key.isSecret() ) {    qDebug( "key isn't secret" );    return false;  }  if ( keyUsage & Kleo::KeySelectionDialog::TrustedKeys &&       key.protocol() == GpgME::Context::OpenPGP &&       // only check this for secret keys for now.       // Seems validity isn't checked for secret keylistings...       !key.isSecret() ) {    std::vector<GpgME::UserID> uids = key.userIDs();    for ( std::vector<GpgME::UserID>::const_iterator it = uids.begin() ; it != uids.end() ; ++it )      if ( !it->isRevoked() && it->validity() >= GpgME::UserID::Marginal )	return true;    qDebug( "key has no UIDs with validity >= Marginal" );    return false;  }  // X.509 keys are always trusted, else they won't be the keybox.  // PENDING(marc) check that this ^ is correct  return true;}