QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
importkeydialog.cpp File Reference

Implements ImportKeyDialog: the guarded key-file read, the blocking gpg --import call and the status-line parser for the imported key id. More...

#include "importkeydialog.h"
#include "plainmessagebox.h"
#include "util.h"
#include "executor.h"
#include "ui_importkeydialog.h"
#include <QApplication>
#include <QClipboard>
#include <QElapsedTimer>
#include <QFile>
#include <QFileDialog>
#include <QFileInfo>
#include <QMessageBox>
#include <QPlainTextEdit>
#include <QProcess>
#include <QRegularExpression>
#include <QString>
#include <utility>
Include dependency graph for importkeydialog.cpp:

Go to the source code of this file.

Functions

static auto notLaidOutLikeAKey (const QString &what) -> QString
 The message for text that fails ImportKeyDialog::fitsTheEditor().

Detailed Description

Implements ImportKeyDialog: the guarded key-file read, the blocking gpg --import call and the status-line parser for the imported key id.

Definition in file importkeydialog.cpp.

Function Documentation

◆ notLaidOutLikeAKey()

auto notLaidOutLikeAKey ( const QString & what) -> QString
static

The message for text that fails ImportKeyDialog::fitsTheEditor().

Parameters
whatWhat holds the text: a file name, or "The clipboard".
Returns
The plain-text message.

Definition at line 91 of file importkeydialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: