rem: qDebug( "accepted; selected key: %s\nselected _keys_:", dlg.selectedKey().userID(0).id() ? dlg.selectedKey().userID(0).id() : "<null>" );
add: kdDebug() << "accepted; selected key: " << (dlg.selectedKey().userID(0).id() ? dlg.selectedKey().userID(0).id() : "<null>") << "\nselected _keys_:" << endl;
context: int main( int argc, char ** argv ) {  KAboutData aboutData( "test_keyselectiondialog", "KeySelectionDialog Test", "0.1" );  KCmdLineArgs::init( argc, argv, &aboutData );  KApplication app;  KGlobal::iconLoader()->addAppDir( "libkleopatra" );  Kleo::KeySelectionDialog dlg( "Kleo::KeySelectionDialog Test",				"Please select a key:",				std::vector<GpgME::Key>(),				Kleo::KeySelectionDialog::AllKeys, true, true );  if ( dlg.exec() == QDialog::Accepted ) {    qDebug( "accepted; selected key: %s\nselected _keys_:",	    dlg.selectedKey().userID(0).id() ? dlg.selectedKey().userID(0).id() : "<null>" );    for ( std::vector<GpgME::Key>::const_iterator it = dlg.selectedKeys().begin() ; it != dlg.selectedKeys().end() ; ++it )      qDebug( "%s", it->userID(0).id() ? it->userID(0).id() : "<null>" );  } else {    qDebug( "rejected" );  }  return 0;}