Qt: Fix windows build of new jobs
-- See git log for changes.
This commit is contained in:
parent
7158397c09
commit
67057d83f5
@ -148,7 +148,7 @@ static QGpgMEDecryptVerifyJob::result_type decrypt_verify_from_filename(Context
|
|||||||
{
|
{
|
||||||
Data indata;
|
Data indata;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||||
#else
|
#else
|
||||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||||
#endif
|
#endif
|
||||||
|
@ -172,7 +172,7 @@ static QGpgMEEncryptJob::result_type encrypt_to_filename(Context *ctx,
|
|||||||
{
|
{
|
||||||
Data indata;
|
Data indata;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||||
#else
|
#else
|
||||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||||
#endif
|
#endif
|
||||||
|
@ -176,7 +176,7 @@ static QGpgMESignEncryptJob::result_type sign_encrypt_to_filename(Context *ctx,
|
|||||||
{
|
{
|
||||||
Data indata;
|
Data indata;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||||
#else
|
#else
|
||||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||||
#endif
|
#endif
|
||||||
|
@ -174,7 +174,7 @@ static QGpgMESignJob::result_type sign_to_filename(Context *ctx,
|
|||||||
{
|
{
|
||||||
Data indata;
|
Data indata;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||||
#else
|
#else
|
||||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||||
#endif
|
#endif
|
||||||
|
@ -135,14 +135,14 @@ static QGpgMEVerifyDetachedJob::result_type verify_from_filename(Context *ctx,
|
|||||||
{
|
{
|
||||||
Data signatureData;
|
Data signatureData;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
signatureData.setFileName(signatureFilePath().toUtf8().constData());
|
signatureData.setFileName(signatureFilePath.toUtf8().constData());
|
||||||
#else
|
#else
|
||||||
signatureData.setFileName(QFile::encodeName(signatureFilePath).constData());
|
signatureData.setFileName(QFile::encodeName(signatureFilePath).constData());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Data signedData;
|
Data signedData;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
signedData.setFileName(signedFilePath().toUtf8().constData());
|
signedData.setFileName(signedFilePath.toUtf8().constData());
|
||||||
#else
|
#else
|
||||||
signedData.setFileName(QFile::encodeName(signedFilePath).constData());
|
signedData.setFileName(QFile::encodeName(signedFilePath).constData());
|
||||||
#endif
|
#endif
|
||||||
|
@ -140,7 +140,7 @@ static QGpgMEVerifyOpaqueJob::result_type verify_from_filename(Context *ctx,
|
|||||||
{
|
{
|
||||||
Data indata;
|
Data indata;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||||
#else
|
#else
|
||||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user