| 195 | } |
| 196 | |
| 197 | ExportDialog *KeyTreeView::exportDialog(const QModelIndexList &indexes) |
| 198 | { |
| 199 | if (indexes.size() == 0) |
| 200 | return NULL; |
| 201 | pki_key *key = db_base::fromIndex<pki_key>(indexes[0]); |
| 202 | return new ExportDialog(this, |
| 203 | tr("Key export"), |
| 204 | tr("Private Keys ( *.pem *.der *.pk8 );; " |
| 205 | "SSH Public Keys ( *.pub )") + ";;" + |
| 206 | tr("SSH Private Keys ( *.priv )") + ";;" + |
| 207 | tr("Microsoft PVK Keys ( *.pvk )"), indexes, |
| 208 | QPixmap(key->isToken() ? ":scardImg" : ":keyImg"), |
| 209 | pki_export::select(asym_key, basemodel->exportFlags(indexes)), |
| 210 | "keyexport"); |
| 211 | } |
nothing calls this directly
no test coverage detected