diff options
| author | Ingo Klöcker <[email protected]> | 2024-06-13 07:53:13 +0000 | 
|---|---|---|
| committer | Ingo Klöcker <[email protected]> | 2024-06-13 08:05:44 +0000 | 
| commit | 60b96d149c71f7f5f928944e65732671d6b9eacc (patch) | |
| tree | 59f183fcab7b73293be346fe1b0e15d3f77cbd5e /lang/qt/tests/t-import.cpp | |
| parent | m4: Update m4 files. (diff) | |
| download | gpgme-60b96d149c71f7f5f928944e65732671d6b9eacc.tar.gz gpgme-60b96d149c71f7f5f928944e65732671d6b9eacc.zip | |
qt: Specify import options as list of strings instead of as string
* lang/qt/src/importjob.cpp, lang/qt/src/importjob.h (setImportOptions):
Change type of argument "options" to QStringList.
(importOptions): Change return type to QStringList.
* lang/qt/src/importjob_p.h (struct ImportJobPrivate): Change type of
member m_importOptions to QStringList.
* lang/qt/src/qgpgmeimportjob.cpp (import_qba): Change type of argument
"importOptions" to QStringList. Join list of import options with ','
when setting the "import-options" context flag.
* lang/qt/tests/t-import.cpp (ImportTest::testImportWithImportOptions):
Adapt to API change.
--
This makes the API that was introduced with the previous commit easier
to use.
GnuPG-bug-id: 7152
Diffstat (limited to 'lang/qt/tests/t-import.cpp')
| -rw-r--r-- | lang/qt/tests/t-import.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lang/qt/tests/t-import.cpp b/lang/qt/tests/t-import.cpp index 79edf4d1..1c0040c9 100644 --- a/lang/qt/tests/t-import.cpp +++ b/lang/qt/tests/t-import.cpp @@ -143,7 +143,7 @@ private Q_SLOTS:              "-----END PGP PUBLIC KEY BLOCK-----\n";          auto *job = openpgp()->importJob(); -        job->setImportOptions(QLatin1String{"show-only"}); +        job->setImportOptions({QStringLiteral("show-only")});          connect(job, &ImportJob::result, this,                  [this](ImportResult result, QString, Error)          { | 
